@squirrel-cloud/ui-vue 0.2.29 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
14
14
  onClick?: ((e: MouseEvent) => any) | undefined;
15
15
  }>, {
16
16
  size: import('../..').ComponentSize;
17
+ nativeType: import('../..').ButtonType;
17
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
18
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
20
  export default _default;
@@ -11,4 +11,5 @@ export * from './popover';
11
11
  export * from './progress';
12
12
  export * from './tag';
13
13
  export * from './text';
14
+ export * from './textarea';
14
15
  export * from './timeline';
@@ -35,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
35
  }>, {
36
36
  type: import('../..').InputType;
37
37
  size: import('../..').ComponentSize;
38
+ autocomplete: string;
38
39
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
40
  inputRef: HTMLInputElement;
40
41
  }, HTMLDivElement>;
@@ -0,0 +1,2 @@
1
+ import { default as SqTextarea } from './textarea';
2
+ export { SqTextarea };
@@ -0,0 +1,31 @@
1
+ import { TextareaProps } from '../../props';
2
+ type __VLS_Props = TextareaProps;
3
+ declare function focus(): void;
4
+ declare function blur(): void;
5
+ type __VLS_PublicProps = {
6
+ 'value'?: string;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
9
+ focus: typeof focus;
10
+ blur: typeof blur;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ input: (e: Event) => any;
13
+ blur: (e: FocusEvent) => any;
14
+ change: (e: Event) => any;
15
+ focus: (e: FocusEvent) => any;
16
+ "update:value": (value: string) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ onInput?: ((e: Event) => any) | undefined;
19
+ onBlur?: ((e: FocusEvent) => any) | undefined;
20
+ onChange?: ((e: Event) => any) | undefined;
21
+ onFocus?: ((e: FocusEvent) => any) | undefined;
22
+ "onUpdate:value"?: ((value: string) => any) | undefined;
23
+ }>, {
24
+ autocomplete: string;
25
+ resize: import('../..').TextareaResizeType;
26
+ rows: number | string;
27
+ cols: number | string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ textareaRef: HTMLTextAreaElement;
30
+ }, HTMLDivElement>;
31
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ProgressProps } from '../';
2
+ import { ProgressProps } from '..';
3
3
  /**
4
4
  * 回到顶部属性
5
5
  */
@@ -3,6 +3,5 @@ type PickKeys = 'size' | 'type' | 'round';
3
3
  /**
4
4
  * 按钮组属性
5
5
  */
6
- export interface ButtonGroupProps extends Pick<ButtonProps, PickKeys> {
7
- }
6
+ export type ButtonGroupProps = Pick<ButtonProps, PickKeys>;
8
7
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentSize, ComponentType } from '../../../typings';
2
+ import { ButtonType, ComponentSize, ComponentType } from '../../../typings';
3
3
  /**
4
4
  * 按钮属性
5
5
  */
@@ -24,6 +24,14 @@ export interface ButtonProps {
24
24
  * 是否加载中
25
25
  */
26
26
  loading?: boolean;
27
+ /**
28
+ * 关联表单
29
+ */
30
+ form?: string;
31
+ /**
32
+ * 原生按钮类型
33
+ */
34
+ nativeType?: ButtonType;
27
35
  /**
28
36
  * 是否禁用
29
37
  */
@@ -10,4 +10,5 @@ export * from './popover';
10
10
  export * from './progress';
11
11
  export * from './tag';
12
12
  export * from './text';
13
+ export * from './textarea';
13
14
  export * from './timeline';
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentSize, ComponentTypeBase, InputType } from '../../../typings';
2
+ import { ComponentSize, ComponentTypeBase, InputMode, InputType } from '../../../typings';
3
3
  /**
4
4
  * 输入框属性
5
5
  */
@@ -40,6 +40,34 @@ export interface InputProps {
40
40
  * 占位文本
41
41
  */
42
42
  placeholder?: string;
43
+ /**
44
+ * 最大长度
45
+ */
46
+ maxlength?: number | string;
47
+ /**
48
+ * 最小长度
49
+ */
50
+ minlength?: number | string;
51
+ /**
52
+ * 自动填充
53
+ */
54
+ autocomplete?: string;
55
+ /**
56
+ * 名称
57
+ */
58
+ name?: string;
59
+ /**
60
+ * 关联表单
61
+ */
62
+ form?: string;
63
+ /**
64
+ * 键盘输入模式
65
+ */
66
+ inputmode?: InputMode;
67
+ /**
68
+ * 是否自动获取焦点
69
+ */
70
+ autofocus?: boolean;
43
71
  /**
44
72
  * 输入框类型
45
73
  */
@@ -1,4 +1,4 @@
1
- import { TagProps } from '../';
1
+ import { TagProps } from '..';
2
2
  import { TagThemeBase } from '../../../typings';
3
3
  /**
4
4
  * 可选中标签属性
@@ -0,0 +1 @@
1
+ export * from './textarea';
@@ -0,0 +1,24 @@
1
+ import { TextareaResizeType } from '../../../typings';
2
+ import { InputProps } from '..';
3
+ /**
4
+ * 排除属性
5
+ */
6
+ type ExcludeKeys = 'round' | 'showStatusIcon' | 'prefixIcon' | 'suffixIcon' | 'clearable' | 'size';
7
+ /**
8
+ * 文本域属性
9
+ */
10
+ export interface TextareaProps extends Omit<InputProps, ExcludeKeys> {
11
+ /**
12
+ * 缩放方式
13
+ */
14
+ resize?: TextareaResizeType;
15
+ /**
16
+ * 高度
17
+ */
18
+ rows?: number | string;
19
+ /**
20
+ * 宽度
21
+ */
22
+ cols?: number | string;
23
+ }
24
+ export {};