lew-ui 2.3.5 → 2.3.8

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.
Files changed (105) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +33 -33
  3. package/README.zh-CN.md +35 -35
  4. package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
  5. package/dist/components/alert/src/props.d.ts +8 -6
  6. package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
  7. package/dist/components/avatar/src/props.d.ts +22 -20
  8. package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
  9. package/dist/components/backtop/src/props.d.ts +4 -0
  10. package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
  11. package/dist/components/badge/src/props.d.ts +7 -5
  12. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
  13. package/dist/components/breadcrumb/src/props.d.ts +10 -8
  14. package/dist/components/button/src/LewButton.vue.d.ts +60 -36
  15. package/dist/components/button/src/props.d.ts +31 -19
  16. package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
  17. package/dist/components/cascader/src/props.d.ts +29 -21
  18. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
  19. package/dist/components/checkbox/src/props.d.ts +43 -38
  20. package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
  21. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
  22. package/dist/components/collapse/src/props.d.ts +8 -2
  23. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
  24. package/dist/components/date-picker/src/props.d.ts +21 -18
  25. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
  26. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
  27. package/dist/components/date-range-picker/src/props.d.ts +24 -19
  28. package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
  29. package/dist/components/drawer/src/props.d.ts +18 -15
  30. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
  31. package/dist/components/dropdown/src/props.d.ts +14 -12
  32. package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
  33. package/dist/components/empty/src/props.d.ts +7 -2
  34. package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
  35. package/dist/components/flex/src/props.d.ts +18 -12
  36. package/dist/components/form/src/LewForm.vue.d.ts +35 -23
  37. package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
  38. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  39. package/dist/components/form/src/props.d.ts +47 -36
  40. package/dist/components/image/src/LewImage.vue.d.ts +48 -33
  41. package/dist/components/image/src/props.d.ts +25 -16
  42. package/dist/components/input/src/LewInput.vue.d.ts +67 -64
  43. package/dist/components/input/src/props.d.ts +33 -29
  44. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
  45. package/dist/components/input-number/src/props.d.ts +28 -20
  46. package/dist/components/input-table/src/props.d.ts +62 -15
  47. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
  48. package/dist/components/input-tag/src/props.d.ts +6 -4
  49. package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
  50. package/dist/components/magic-number/src/props.d.ts +1 -1
  51. package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
  52. package/dist/components/mark/src/props.d.ts +13 -9
  53. package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
  54. package/dist/components/menu/src/props.d.ts +7 -5
  55. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
  56. package/dist/components/menu-tree/src/props.d.ts +3 -3
  57. package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
  58. package/dist/components/modal/src/props.d.ts +4 -1
  59. package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
  60. package/dist/components/pagination/src/props.d.ts +10 -5
  61. package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
  62. package/dist/components/popok/src/props.d.ts +7 -3
  63. package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
  64. package/dist/components/popover/src/props.d.ts +20 -16
  65. package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
  66. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
  67. package/dist/components/radio/src/props.d.ts +32 -28
  68. package/dist/components/result/src/LewResult.vue.d.ts +9 -3
  69. package/dist/components/result/src/props.d.ts +7 -1
  70. package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
  71. package/dist/components/select/src/props.d.ts +10 -8
  72. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
  73. package/dist/components/select-multiple/src/props.d.ts +13 -10
  74. package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
  75. package/dist/components/steps/src/props.d.ts +7 -4
  76. package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
  77. package/dist/components/switch/src/props.d.ts +9 -3
  78. package/dist/components/table/src/LewTable.vue.d.ts +30 -23
  79. package/dist/components/table/src/props.d.ts +23 -11
  80. package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
  81. package/dist/components/tabs/src/props.d.ts +16 -11
  82. package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
  83. package/dist/components/tag/src/props.d.ts +6 -3
  84. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
  85. package/dist/components/text-trim/src/props.d.ts +21 -13
  86. package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
  87. package/dist/components/textarea/src/props.d.ts +17 -18
  88. package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
  89. package/dist/components/title/src/props.d.ts +10 -10
  90. package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
  91. package/dist/components/tree/src/props.d.ts +5 -4
  92. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
  93. package/dist/components/tree-select/src/props.d.ts +56 -44
  94. package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
  95. package/dist/components/upload/src/props.d.ts +26 -21
  96. package/dist/directives/backtop/src/index.d.ts +2 -2
  97. package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
  98. package/dist/directives/dialog/src/index.d.ts +5 -5
  99. package/dist/directives/dialog/src/props.d.ts +8 -7
  100. package/dist/index.d.ts +1 -0
  101. package/dist/index.mjs +2732 -1333
  102. package/dist/index.umd.js +46 -46
  103. package/dist/style.css +1 -1
  104. package/package.json +1 -1
  105. package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
@@ -4,40 +4,41 @@ declare const _default: import('vue').DefineComponent<{
4
4
  default: boolean;
5
5
  description: string;
6
6
  };
7
- label: {
8
- type: StringConstructor;
9
- default: string;
10
- description: string;
11
- };
12
- round: {
7
+ disabled: {
13
8
  type: BooleanConstructor;
14
9
  default: boolean;
15
10
  description: string;
16
11
  };
17
- block: {
18
- type: BooleanConstructor;
19
- default: string;
20
- description: string;
21
- };
22
12
  iconable: {
23
13
  type: BooleanConstructor;
24
14
  default: boolean;
25
15
  description: string;
26
16
  };
27
- disabled: {
17
+ label: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ description: string;
21
+ };
22
+ readonly: {
28
23
  type: BooleanConstructor;
29
24
  default: boolean;
30
25
  description: string;
31
26
  };
32
- readonly: {
27
+ round: {
33
28
  type: BooleanConstructor;
34
29
  default: boolean;
35
30
  description: string;
36
31
  };
37
32
  size: {
38
- type: globalThis.PropType<import('./props').RadioSize>;
33
+ type: StringConstructor;
39
34
  default: string;
40
35
  description: string;
36
+ validator(value: import('./props').RadioSize): boolean;
37
+ };
38
+ block: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ description: string;
41
42
  };
42
43
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
44
  change: (...args: any[]) => void;
@@ -47,50 +48,51 @@ declare const _default: import('vue').DefineComponent<{
47
48
  default: boolean;
48
49
  description: string;
49
50
  };
50
- label: {
51
- type: StringConstructor;
52
- default: string;
53
- description: string;
54
- };
55
- round: {
51
+ disabled: {
56
52
  type: BooleanConstructor;
57
53
  default: boolean;
58
54
  description: string;
59
55
  };
60
- block: {
61
- type: BooleanConstructor;
62
- default: string;
63
- description: string;
64
- };
65
56
  iconable: {
66
57
  type: BooleanConstructor;
67
58
  default: boolean;
68
59
  description: string;
69
60
  };
70
- disabled: {
61
+ label: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ description: string;
65
+ };
66
+ readonly: {
71
67
  type: BooleanConstructor;
72
68
  default: boolean;
73
69
  description: string;
74
70
  };
75
- readonly: {
71
+ round: {
76
72
  type: BooleanConstructor;
77
73
  default: boolean;
78
74
  description: string;
79
75
  };
80
76
  size: {
81
- type: globalThis.PropType<import('./props').RadioSize>;
77
+ type: StringConstructor;
82
78
  default: string;
83
79
  description: string;
80
+ validator(value: import('./props').RadioSize): boolean;
81
+ };
82
+ block: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ description: string;
84
86
  };
85
87
  }>> & {
86
88
  onChange?: ((...args: any[]) => any) | undefined;
87
89
  }, {
88
90
  label: string;
91
+ block: boolean;
89
92
  round: boolean;
90
- size: import('./props').RadioSize;
91
- readonly: boolean;
93
+ size: string;
92
94
  disabled: boolean;
93
- block: boolean;
95
+ readonly: boolean;
94
96
  iconable: boolean;
95
97
  checked: boolean;
96
98
  }, {}>;
@@ -11,36 +11,38 @@ declare const _default: import('vue').DefineComponent<{
11
11
  type: StringConstructor;
12
12
  default: string;
13
13
  description: string;
14
+ validator(value: import('./props').RadioDirection): boolean;
14
15
  };
15
- iconable: {
16
+ disabled: {
16
17
  type: BooleanConstructor;
17
18
  default: boolean;
18
19
  description: string;
19
20
  };
20
- disabled: {
21
+ iconable: {
21
22
  type: BooleanConstructor;
22
23
  default: boolean;
23
24
  description: string;
24
25
  };
25
- round: {
26
+ options: {
27
+ type: globalThis.PropType<RadioOptions[]>;
28
+ default: () => never[];
29
+ description: string;
30
+ };
31
+ readonly: {
26
32
  type: BooleanConstructor;
27
33
  default: boolean;
28
34
  description: string;
29
35
  };
30
- readonly: {
36
+ round: {
31
37
  type: BooleanConstructor;
32
38
  default: boolean;
33
39
  description: string;
34
40
  };
35
41
  size: {
36
- type: globalThis.PropType<import('./props').RadioSize>;
42
+ type: StringConstructor;
37
43
  default: string;
38
44
  description: string;
39
- };
40
- options: {
41
- type: globalThis.PropType<RadioOptions[]>;
42
- default: never[];
43
- description: string;
45
+ validator(value: import('./props').RadioSize): boolean;
44
46
  };
45
47
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
48
  change: (...args: any[]) => void;
@@ -55,47 +57,49 @@ declare const _default: import('vue').DefineComponent<{
55
57
  type: StringConstructor;
56
58
  default: string;
57
59
  description: string;
60
+ validator(value: import('./props').RadioDirection): boolean;
58
61
  };
59
- iconable: {
62
+ disabled: {
60
63
  type: BooleanConstructor;
61
64
  default: boolean;
62
65
  description: string;
63
66
  };
64
- disabled: {
67
+ iconable: {
65
68
  type: BooleanConstructor;
66
69
  default: boolean;
67
70
  description: string;
68
71
  };
69
- round: {
72
+ options: {
73
+ type: globalThis.PropType<RadioOptions[]>;
74
+ default: () => never[];
75
+ description: string;
76
+ };
77
+ readonly: {
70
78
  type: BooleanConstructor;
71
79
  default: boolean;
72
80
  description: string;
73
81
  };
74
- readonly: {
82
+ round: {
75
83
  type: BooleanConstructor;
76
84
  default: boolean;
77
85
  description: string;
78
86
  };
79
87
  size: {
80
- type: globalThis.PropType<import('./props').RadioSize>;
88
+ type: StringConstructor;
81
89
  default: string;
82
90
  description: string;
83
- };
84
- options: {
85
- type: globalThis.PropType<RadioOptions[]>;
86
- default: never[];
87
- description: string;
91
+ validator(value: import('./props').RadioSize): boolean;
88
92
  };
89
93
  }>> & {
90
94
  onChange?: ((...args: any[]) => any) | undefined;
91
95
  }, {
92
96
  direction: string;
97
+ block: boolean;
93
98
  round: boolean;
94
- size: import('./props').RadioSize;
99
+ size: string;
95
100
  options: RadioOptions[];
96
- readonly: boolean;
97
101
  disabled: boolean;
98
- block: boolean;
102
+ readonly: boolean;
99
103
  iconable: boolean;
100
104
  }, {}>;
101
105
  export default _default;
@@ -1,51 +1,53 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
- export type RadioOptions = {
3
+ export type RadioSize = 'small' | 'medium' | 'large';
4
+ export type RadioDirection = 'x' | 'y';
5
+ export interface RadioOptions {
4
6
  label: string;
5
7
  value: string | number;
6
8
  disabled?: boolean;
7
- };
8
- export type RadioSize = 'small' | 'medium' | 'large';
9
+ }
9
10
  export declare const radioProps: {
10
11
  checked: {
11
12
  type: BooleanConstructor;
12
13
  default: boolean;
13
14
  description: string;
14
15
  };
15
- label: {
16
- type: StringConstructor;
17
- default: string;
18
- description: string;
19
- };
20
- round: {
16
+ disabled: {
21
17
  type: BooleanConstructor;
22
18
  default: boolean;
23
19
  description: string;
24
20
  };
25
- block: {
26
- type: BooleanConstructor;
27
- default: string;
28
- description: string;
29
- };
30
21
  iconable: {
31
22
  type: BooleanConstructor;
32
23
  default: boolean;
33
24
  description: string;
34
25
  };
35
- disabled: {
26
+ label: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ description: string;
30
+ };
31
+ readonly: {
36
32
  type: BooleanConstructor;
37
33
  default: boolean;
38
34
  description: string;
39
35
  };
40
- readonly: {
36
+ round: {
41
37
  type: BooleanConstructor;
42
38
  default: boolean;
43
39
  description: string;
44
40
  };
45
41
  size: {
46
- type: PropType<RadioSize>;
42
+ type: StringConstructor;
47
43
  default: string;
48
44
  description: string;
45
+ validator(value: RadioSize): boolean;
46
+ };
47
+ block: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ description: string;
49
51
  };
50
52
  };
51
53
  export declare const radioGroupModel: {
@@ -65,36 +67,38 @@ export declare const radioGroupProps: {
65
67
  type: StringConstructor;
66
68
  default: string;
67
69
  description: string;
70
+ validator(value: RadioDirection): boolean;
68
71
  };
69
- iconable: {
72
+ disabled: {
70
73
  type: BooleanConstructor;
71
74
  default: boolean;
72
75
  description: string;
73
76
  };
74
- disabled: {
77
+ iconable: {
75
78
  type: BooleanConstructor;
76
79
  default: boolean;
77
80
  description: string;
78
81
  };
79
- round: {
82
+ options: {
83
+ type: PropType<RadioOptions[]>;
84
+ default: () => never[];
85
+ description: string;
86
+ };
87
+ readonly: {
80
88
  type: BooleanConstructor;
81
89
  default: boolean;
82
90
  description: string;
83
91
  };
84
- readonly: {
92
+ round: {
85
93
  type: BooleanConstructor;
86
94
  default: boolean;
87
95
  description: string;
88
96
  };
89
97
  size: {
90
- type: PropType<RadioSize>;
98
+ type: StringConstructor;
91
99
  default: string;
92
100
  description: string;
93
- };
94
- options: {
95
- type: PropType<RadioOptions[]>;
96
- default: never[];
97
- description: string;
101
+ validator(value: RadioSize): boolean;
98
102
  };
99
103
  };
100
104
  export type RadioProps = ExtractPropTypes<typeof radioProps>;
@@ -3,38 +3,44 @@ declare function __VLS_template(): {
3
3
  };
4
4
  declare const __VLS_component: import('vue').DefineComponent<{
5
5
  type: {
6
- type: StringConstructor;
6
+ type: globalThis.PropType<import('../../..').LewStatusColor>;
7
7
  default: string;
8
+ validator(value: import('../../..').LewStatusColor): boolean;
8
9
  description: string;
9
10
  };
10
11
  title: {
11
12
  type: StringConstructor;
12
13
  default: string;
14
+ validator(value: string): boolean;
13
15
  description: string;
14
16
  };
15
17
  content: {
16
18
  type: StringConstructor;
17
19
  default: string;
20
+ validator(value: string): boolean;
18
21
  description: string;
19
22
  };
20
23
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
21
24
  type: {
22
- type: StringConstructor;
25
+ type: globalThis.PropType<import('../../..').LewStatusColor>;
23
26
  default: string;
27
+ validator(value: import('../../..').LewStatusColor): boolean;
24
28
  description: string;
25
29
  };
26
30
  title: {
27
31
  type: StringConstructor;
28
32
  default: string;
33
+ validator(value: string): boolean;
29
34
  description: string;
30
35
  };
31
36
  content: {
32
37
  type: StringConstructor;
33
38
  default: string;
39
+ validator(value: string): boolean;
34
40
  description: string;
35
41
  };
36
42
  }>>, {
37
- type: string;
43
+ type: import('../../..').LewStatusColor;
38
44
  title: string;
39
45
  content: string;
40
46
  }, {}>;
@@ -1,17 +1,23 @@
1
+ import { PropType } from 'vue';
2
+ import { LewStatusColor } from '../../..';
3
+
1
4
  export declare const resultProps: {
2
5
  type: {
3
- type: StringConstructor;
6
+ type: PropType<LewStatusColor>;
4
7
  default: string;
8
+ validator(value: LewStatusColor): boolean;
5
9
  description: string;
6
10
  };
7
11
  title: {
8
12
  type: StringConstructor;
9
13
  default: string;
14
+ validator(value: string): boolean;
10
15
  description: string;
11
16
  };
12
17
  content: {
13
18
  type: StringConstructor;
14
19
  default: string;
20
+ validator(value: string): boolean;
15
21
  description: string;
16
22
  };
17
23
  };
@@ -11,17 +11,17 @@ declare function __VLS_template(): {
11
11
  declare const __VLS_component: import('vue').DefineComponent<{
12
12
  modelValue: import('vue').PropType<any>;
13
13
  defaultValue: {
14
- type: (StringConstructor | NumberConstructor)[];
14
+ type: globalThis.PropType<string | number>;
15
15
  default: string;
16
16
  description: string;
17
17
  };
18
18
  options: {
19
19
  type: globalThis.PropType<SelectOptions[]>;
20
- default: never[];
20
+ default: () => never[];
21
21
  description: string;
22
22
  };
23
23
  trigger: {
24
- type: StringConstructor;
24
+ type: globalThis.PropType<import('../../..').SelectTrigger>;
25
25
  default: string;
26
26
  description: string;
27
27
  };
@@ -31,7 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
31
31
  description: string;
32
32
  };
33
33
  size: {
34
- type: StringConstructor;
34
+ type: globalThis.PropType<import('../../..').SelectSize>;
35
35
  default: string;
36
36
  description: string;
37
37
  };
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
46
46
  description: string;
47
47
  };
48
48
  searchMethod: {
49
- type: globalThis.PropType<(e: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
49
+ type: globalThis.PropType<(params: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
50
50
  default: (params: import('../../..').SelectSearchMethodParams) => SelectOptions[];
51
51
  description: string;
52
52
  };
@@ -67,12 +67,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
67
67
  };
68
68
  disabled: {
69
69
  type: BooleanConstructor;
70
- default: () => boolean;
70
+ default: boolean;
71
71
  description: string;
72
72
  };
73
73
  showCheckIcon: {
74
74
  type: BooleanConstructor;
75
- default: () => boolean;
75
+ default: boolean;
76
76
  description: string;
77
77
  };
78
78
  }, {
@@ -85,17 +85,17 @@ declare const __VLS_component: import('vue').DefineComponent<{
85
85
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
86
86
  modelValue: import('vue').PropType<any>;
87
87
  defaultValue: {
88
- type: (StringConstructor | NumberConstructor)[];
88
+ type: globalThis.PropType<string | number>;
89
89
  default: string;
90
90
  description: string;
91
91
  };
92
92
  options: {
93
93
  type: globalThis.PropType<SelectOptions[]>;
94
- default: never[];
94
+ default: () => never[];
95
95
  description: string;
96
96
  };
97
97
  trigger: {
98
- type: StringConstructor;
98
+ type: globalThis.PropType<import('../../..').SelectTrigger>;
99
99
  default: string;
100
100
  description: string;
101
101
  };
@@ -105,7 +105,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
105
105
  description: string;
106
106
  };
107
107
  size: {
108
- type: StringConstructor;
108
+ type: globalThis.PropType<import('../../..').SelectSize>;
109
109
  default: string;
110
110
  description: string;
111
111
  };
@@ -120,7 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
120
120
  description: string;
121
121
  };
122
122
  searchMethod: {
123
- type: globalThis.PropType<(e: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
123
+ type: globalThis.PropType<(params: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
124
124
  default: (params: import('../../..').SelectSearchMethodParams) => SelectOptions[];
125
125
  description: string;
126
126
  };
@@ -141,12 +141,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
141
141
  };
142
142
  disabled: {
143
143
  type: BooleanConstructor;
144
- default: () => boolean;
144
+ default: boolean;
145
145
  description: string;
146
146
  };
147
147
  showCheckIcon: {
148
148
  type: BooleanConstructor;
149
- default: () => boolean;
149
+ default: boolean;
150
150
  description: string;
151
151
  };
152
152
  }>> & {
@@ -154,19 +154,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
154
154
  onChange?: ((...args: any[]) => any) | undefined;
155
155
  onClear?: ((...args: any[]) => any) | undefined;
156
156
  }, {
157
- size: string;
157
+ size: import('../../..').SelectSize;
158
158
  options: SelectOptions[];
159
- trigger: string;
160
159
  placeholder: string;
160
+ disabled: boolean;
161
161
  clearable: boolean;
162
+ trigger: import('../../..').SelectTrigger;
162
163
  readonly: boolean;
163
- disabled: boolean;
164
164
  itemHeight: number;
165
+ defaultValue: string | number;
166
+ showCheckIcon: boolean;
165
167
  searchable: boolean;
166
168
  searchDelay: number;
167
- showCheckIcon: boolean;
168
- defaultValue: string | number;
169
- searchMethod: (e: import('../../..').SelectSearchMethodParams) => SelectOptions[];
169
+ searchMethod: (params: import('../../..').SelectSearchMethodParams) => SelectOptions[];
170
170
  }, {}>;
171
171
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
172
172
  export default _default;
@@ -9,26 +9,28 @@ export type SelectSearchMethodParams = {
9
9
  options?: SelectOptions[];
10
10
  keyword?: string;
11
11
  };
12
+ export type SelectSize = 'small' | 'medium' | 'large';
13
+ export type SelectTrigger = 'click' | 'hover';
12
14
  export declare const selectModel: {
13
15
  modelValue: {
14
- type: (StringConstructor | NumberConstructor | undefined)[];
16
+ type: PropType<string | number | undefined>;
15
17
  default: string;
16
18
  description: string;
17
19
  };
18
20
  };
19
21
  export declare const selectProps: {
20
22
  defaultValue: {
21
- type: (StringConstructor | NumberConstructor)[];
23
+ type: PropType<string | number>;
22
24
  default: string;
23
25
  description: string;
24
26
  };
25
27
  options: {
26
28
  type: PropType<SelectOptions[]>;
27
- default: never[];
29
+ default: () => never[];
28
30
  description: string;
29
31
  };
30
32
  trigger: {
31
- type: StringConstructor;
33
+ type: PropType<SelectTrigger>;
32
34
  default: string;
33
35
  description: string;
34
36
  };
@@ -38,7 +40,7 @@ export declare const selectProps: {
38
40
  description: string;
39
41
  };
40
42
  size: {
41
- type: StringConstructor;
43
+ type: PropType<SelectSize>;
42
44
  default: string;
43
45
  description: string;
44
46
  };
@@ -53,7 +55,7 @@ export declare const selectProps: {
53
55
  description: string;
54
56
  };
55
57
  searchMethod: {
56
- type: PropType<(e: SelectSearchMethodParams) => SelectOptions[]>;
58
+ type: PropType<(params: SelectSearchMethodParams) => SelectOptions[]>;
57
59
  default: (params: SelectSearchMethodParams) => SelectOptions[];
58
60
  description: string;
59
61
  };
@@ -74,12 +76,12 @@ export declare const selectProps: {
74
76
  };
75
77
  disabled: {
76
78
  type: BooleanConstructor;
77
- default: () => boolean;
79
+ default: boolean;
78
80
  description: string;
79
81
  };
80
82
  showCheckIcon: {
81
83
  type: BooleanConstructor;
82
- default: () => boolean;
84
+ default: boolean;
83
85
  description: string;
84
86
  };
85
87
  };