lew-ui 2.3.6 → 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
@@ -3,41 +3,35 @@ declare const _default: import('vue').DefineComponent<{
3
3
  required: true;
4
4
  type: import('vue').PropType<any>;
5
5
  };
6
- size: {
7
- type: StringConstructor;
8
- default: string;
9
- description: string;
10
- };
11
- step: {
12
- type: (StringConstructor | NumberConstructor)[];
13
- default: number;
14
- description: string;
15
- };
16
6
  min: {
17
7
  type: (StringConstructor | NumberConstructor)[];
18
8
  default: string;
19
9
  description: string;
10
+ validator(value: number | string): boolean;
20
11
  };
21
12
  max: {
22
13
  type: (StringConstructor | NumberConstructor)[];
23
14
  default: string;
24
15
  description: string;
16
+ validator(value: number | string): boolean;
25
17
  };
26
- selectByFocus: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- description: string;
30
- };
31
- align: {
32
- type: StringConstructor;
33
- default: string;
18
+ step: {
19
+ type: (StringConstructor | NumberConstructor)[];
20
+ default: number;
34
21
  description: string;
22
+ validator(value: number | string): boolean;
35
23
  };
36
24
  disabled: {
37
25
  type: BooleanConstructor;
38
26
  default: boolean;
39
27
  description: string;
40
28
  };
29
+ size: {
30
+ type: PropType<import('../../..').LewSize>;
31
+ default: string;
32
+ description: string;
33
+ validator(value: import('../../..').LewSize): boolean;
34
+ };
41
35
  placeholder: {
42
36
  type: StringConstructor;
43
37
  default: string;
@@ -52,6 +46,18 @@ declare const _default: import('vue').DefineComponent<{
52
46
  type: (StringConstructor | NumberConstructor)[];
53
47
  default: string;
54
48
  description: string;
49
+ validator(value: number | string): boolean;
50
+ };
51
+ align: {
52
+ type: PropType<import('../../..').InputNumberAlign>;
53
+ default: string;
54
+ description: string;
55
+ validator(value: import('../../..').InputNumberAlign): boolean;
56
+ };
57
+ selectByFocus: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ description: string;
55
61
  };
56
62
  }, {
57
63
  toFocus: () => void;
@@ -66,41 +72,35 @@ declare const _default: import('vue').DefineComponent<{
66
72
  required: true;
67
73
  type: import('vue').PropType<any>;
68
74
  };
69
- size: {
70
- type: StringConstructor;
71
- default: string;
72
- description: string;
73
- };
74
- step: {
75
- type: (StringConstructor | NumberConstructor)[];
76
- default: number;
77
- description: string;
78
- };
79
75
  min: {
80
76
  type: (StringConstructor | NumberConstructor)[];
81
77
  default: string;
82
78
  description: string;
79
+ validator(value: number | string): boolean;
83
80
  };
84
81
  max: {
85
82
  type: (StringConstructor | NumberConstructor)[];
86
83
  default: string;
87
84
  description: string;
85
+ validator(value: number | string): boolean;
88
86
  };
89
- selectByFocus: {
90
- type: BooleanConstructor;
91
- default: boolean;
92
- description: string;
93
- };
94
- align: {
95
- type: StringConstructor;
96
- default: string;
87
+ step: {
88
+ type: (StringConstructor | NumberConstructor)[];
89
+ default: number;
97
90
  description: string;
91
+ validator(value: number | string): boolean;
98
92
  };
99
93
  disabled: {
100
94
  type: BooleanConstructor;
101
95
  default: boolean;
102
96
  description: string;
103
97
  };
98
+ size: {
99
+ type: PropType<import('../../..').LewSize>;
100
+ default: string;
101
+ description: string;
102
+ validator(value: import('../../..').LewSize): boolean;
103
+ };
104
104
  placeholder: {
105
105
  type: StringConstructor;
106
106
  default: string;
@@ -115,6 +115,18 @@ declare const _default: import('vue').DefineComponent<{
115
115
  type: (StringConstructor | NumberConstructor)[];
116
116
  default: string;
117
117
  description: string;
118
+ validator(value: number | string): boolean;
119
+ };
120
+ align: {
121
+ type: PropType<import('../../..').InputNumberAlign>;
122
+ default: string;
123
+ description: string;
124
+ validator(value: import('../../..').InputNumberAlign): boolean;
125
+ };
126
+ selectByFocus: {
127
+ type: BooleanConstructor;
128
+ default: boolean;
129
+ description: string;
118
130
  };
119
131
  }>> & {
120
132
  onFocus?: ((...args: any[]) => any) | undefined;
@@ -123,14 +135,14 @@ declare const _default: import('vue').DefineComponent<{
123
135
  onInput?: ((...args: any[]) => any) | undefined;
124
136
  }, {
125
137
  width: string | number;
126
- size: string;
138
+ size: import('../../..').LewSize;
127
139
  placeholder: string;
128
- readonly: boolean;
129
140
  disabled: boolean;
130
- align: string;
141
+ readonly: boolean;
142
+ align: import('../../..').InputNumberAlign;
131
143
  selectByFocus: boolean;
132
- step: string | number;
133
144
  min: string | number;
134
145
  max: string | number;
146
+ step: string | number;
135
147
  }, {}>;
136
148
  export default _default;
@@ -1,48 +1,44 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
+ import { LewSize } from '../../../types';
2
3
 
4
+ export type InputNumberAlign = 'left' | 'center' | 'right';
3
5
  export declare const inputNumberModel: {
4
6
  modelValue: {
5
- type: (NumberConstructor | undefined)[];
6
- default: string;
7
+ type: NumberConstructor;
8
+ default: undefined;
7
9
  description: string;
8
10
  };
9
11
  };
10
12
  export declare const inputNumberProps: {
11
- size: {
12
- type: StringConstructor;
13
- default: string;
14
- description: string;
15
- };
16
- step: {
17
- type: (StringConstructor | NumberConstructor)[];
18
- default: number;
19
- description: string;
20
- };
21
13
  min: {
22
14
  type: (StringConstructor | NumberConstructor)[];
23
15
  default: string;
24
16
  description: string;
17
+ validator(value: number | string): boolean;
25
18
  };
26
19
  max: {
27
20
  type: (StringConstructor | NumberConstructor)[];
28
21
  default: string;
29
22
  description: string;
23
+ validator(value: number | string): boolean;
30
24
  };
31
- selectByFocus: {
32
- type: BooleanConstructor;
33
- default: boolean;
34
- description: string;
35
- };
36
- align: {
37
- type: StringConstructor;
38
- default: string;
25
+ step: {
26
+ type: (StringConstructor | NumberConstructor)[];
27
+ default: number;
39
28
  description: string;
29
+ validator(value: number | string): boolean;
40
30
  };
41
31
  disabled: {
42
32
  type: BooleanConstructor;
43
33
  default: boolean;
44
34
  description: string;
45
35
  };
36
+ size: {
37
+ type: PropType<LewSize>;
38
+ default: string;
39
+ description: string;
40
+ validator(value: LewSize): boolean;
41
+ };
46
42
  placeholder: {
47
43
  type: StringConstructor;
48
44
  default: string;
@@ -57,6 +53,18 @@ export declare const inputNumberProps: {
57
53
  type: (StringConstructor | NumberConstructor)[];
58
54
  default: string;
59
55
  description: string;
56
+ validator(value: number | string): boolean;
57
+ };
58
+ align: {
59
+ type: PropType<InputNumberAlign>;
60
+ default: string;
61
+ description: string;
62
+ validator(value: InputNumberAlign): boolean;
63
+ };
64
+ selectByFocus: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ description: string;
60
68
  };
61
69
  };
62
70
  export type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>;
@@ -1,43 +1,90 @@
1
+ import { PropType } from 'vue';
2
+ import { LewSize } from '../../..';
3
+
4
+ interface InputTableColumn {
5
+ title: string;
6
+ width?: number;
7
+ field: string;
8
+ as: string;
9
+ }
1
10
  export declare const inputTableModel: {
2
11
  modelValue: {
3
12
  type: PropType<any[]>;
4
- default: string;
13
+ default: () => never[];
5
14
  description: string;
6
15
  };
7
16
  };
8
17
  export declare const inputTableProps: {
18
+ columns: {
19
+ type: PropType<InputTableColumn[]>;
20
+ default: () => {
21
+ title: string;
22
+ width: number;
23
+ field: string;
24
+ as: string;
25
+ }[];
26
+ description: string;
27
+ validator(value: InputTableColumn[]): boolean;
28
+ };
9
29
  size: {
10
- type: StringConstructor;
30
+ type: PropType<LewSize>;
11
31
  default: string;
12
32
  description: string;
33
+ validator(value: LewSize): boolean;
13
34
  };
14
35
  width: {
15
36
  type: (StringConstructor | NumberConstructor)[];
16
37
  default: string;
17
38
  description: string;
39
+ validator(value: number | string): boolean;
40
+ };
41
+ rowKey: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ description: string;
45
+ validator(value: string): boolean;
18
46
  };
19
- batchDelete: {
47
+ batchDeletable: {
20
48
  type: BooleanConstructor;
21
49
  default: boolean;
22
50
  description: string;
23
51
  };
24
- rowKey: {
25
- type: StringConstructor;
26
- default: string;
52
+ addable: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
27
55
  description: string;
28
56
  };
29
- autoUniqueId: {
57
+ deletable: {
30
58
  type: BooleanConstructor;
31
59
  default: boolean;
60
+ description: string;
32
61
  };
33
- columns: {
34
- type: ArrayConstructor;
35
- default: {
36
- title: string;
37
- width: number;
38
- field: string;
39
- as: string;
40
- }[];
62
+ maxRows: {
63
+ type: NumberConstructor;
64
+ default: number;
65
+ description: string;
66
+ validator(value: number): boolean;
67
+ };
68
+ minRows: {
69
+ type: NumberConstructor;
70
+ default: number;
71
+ description: string;
72
+ validator(value: number): boolean;
73
+ };
74
+ clearable: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ description: string;
78
+ };
79
+ sortable: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ description: string;
83
+ };
84
+ autoUniqueId: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
41
87
  description: string;
42
88
  };
43
89
  };
90
+ export {};
@@ -1,7 +1,7 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  modelValue: import('vue').PropType<any>;
3
3
  size: {
4
- type: StringConstructor;
4
+ type: globalThis.PropType<import('../../..').InputTagSize>;
5
5
  default: string;
6
6
  description: string;
7
7
  };
@@ -36,7 +36,7 @@ declare const _default: import('vue').DefineComponent<{
36
36
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
37
37
  modelValue: import('vue').PropType<any>;
38
38
  size: {
39
- type: StringConstructor;
39
+ type: globalThis.PropType<import('../../..').InputTagSize>;
40
40
  default: string;
41
41
  description: string;
42
42
  };
@@ -69,11 +69,11 @@ declare const _default: import('vue').DefineComponent<{
69
69
  onChange?: ((...args: any[]) => any) | undefined;
70
70
  onClose?: ((...args: any[]) => any) | undefined;
71
71
  }, {
72
- size: string;
72
+ size: import('../../..').InputTagSize;
73
73
  placeholder: string;
74
+ disabled: boolean;
74
75
  clearable: boolean;
75
76
  readonly: boolean;
76
- disabled: boolean;
77
77
  allowDuplicates: boolean;
78
78
  }, {}>;
79
79
  export default _default;
@@ -1,15 +1,16 @@
1
- import { PropType } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
+ export type InputTagSize = 'small' | 'medium' | 'large';
3
4
  export declare const inputTagModel: {
4
5
  modelValue: {
5
- type: PropType<string[]> | undefined;
6
- default: never[];
6
+ type: PropType<string[]>;
7
+ default: () => never[];
7
8
  description: string;
8
9
  };
9
10
  };
10
11
  export declare const inputTagProps: {
11
12
  size: {
12
- type: StringConstructor;
13
+ type: PropType<InputTagSize>;
13
14
  default: string;
14
15
  description: string;
15
16
  };
@@ -39,3 +40,4 @@ export declare const inputTagProps: {
39
40
  description: string;
40
41
  };
41
42
  };
43
+ export type InputTagProps = ExtractPropTypes<typeof inputTagProps>;
@@ -5,7 +5,7 @@ declare const _default: import('vue').DefineComponent<{
5
5
  description: string;
6
6
  };
7
7
  size: {
8
- type: NumberConstructor;
8
+ type: (StringConstructor | NumberConstructor)[];
9
9
  default: number;
10
10
  description: string;
11
11
  };
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{
21
21
  description: string;
22
22
  };
23
23
  size: {
24
- type: NumberConstructor;
24
+ type: (StringConstructor | NumberConstructor)[];
25
25
  default: number;
26
26
  description: string;
27
27
  };
@@ -32,7 +32,7 @@ declare const _default: import('vue').DefineComponent<{
32
32
  };
33
33
  }>>, {
34
34
  value: number;
35
- size: number;
35
+ size: string | number;
36
36
  sep: boolean;
37
37
  }, {}>;
38
38
  export default _default;
@@ -7,7 +7,7 @@ export declare const magicNumberProps: {
7
7
  description: string;
8
8
  };
9
9
  size: {
10
- type: NumberConstructor;
10
+ type: (StringConstructor | NumberConstructor)[];
11
11
  default: number;
12
12
  description: string;
13
13
  };
@@ -5,7 +5,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
5
5
  color: {
6
6
  type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
7
7
  default: string;
8
- typeDesc: string;
8
+ validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown") => boolean;
9
+ description: string;
10
+ };
11
+ bold: {
12
+ type: globalThis.PropType<(100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) | string>;
13
+ default: number;
14
+ validator: (value: (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) | string) => boolean;
9
15
  description: string;
10
16
  };
11
17
  round: {
@@ -14,13 +20,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
14
20
  description: string;
15
21
  };
16
22
  cursor: {
17
- type: StringConstructor;
23
+ type: globalThis.PropType<"default" | "text" | "pointer" | "move" | "not-allowed">;
18
24
  default: string;
19
- description: string;
20
- };
21
- bold: {
22
- type: NumberConstructor;
23
- default: number;
25
+ validator: (value: "default" | "text" | "pointer" | "move" | "not-allowed") => boolean;
24
26
  description: string;
25
27
  };
26
28
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -29,7 +31,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
29
31
  color: {
30
32
  type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
31
33
  default: string;
32
- typeDesc: string;
34
+ validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown") => boolean;
35
+ description: string;
36
+ };
37
+ bold: {
38
+ type: globalThis.PropType<(100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) | string>;
39
+ default: number;
40
+ validator: (value: (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) | string) => boolean;
33
41
  description: string;
34
42
  };
35
43
  round: {
@@ -38,22 +46,18 @@ declare const __VLS_component: import('vue').DefineComponent<{
38
46
  description: string;
39
47
  };
40
48
  cursor: {
41
- type: StringConstructor;
49
+ type: globalThis.PropType<"default" | "text" | "pointer" | "move" | "not-allowed">;
42
50
  default: string;
43
- description: string;
44
- };
45
- bold: {
46
- type: NumberConstructor;
47
- default: number;
51
+ validator: (value: "default" | "text" | "pointer" | "move" | "not-allowed") => boolean;
48
52
  description: string;
49
53
  };
50
54
  }>> & {
51
55
  onClick?: ((...args: any[]) => any) | undefined;
52
56
  }, {
53
- bold: number;
57
+ bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
54
58
  color: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown";
55
59
  round: boolean;
56
- cursor: string;
60
+ cursor: "default" | "text" | "pointer" | "move" | "not-allowed";
57
61
  }, {}>;
58
62
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
59
63
  export default _default;
@@ -1,11 +1,19 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
- type markColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
3
+ type MarkColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
4
+ type CursorStyle = 'pointer' | 'default' | 'text' | 'move' | 'not-allowed';
5
+ type BoldValue = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
4
6
  export declare const markProps: {
5
7
  color: {
6
- type: PropType<markColor>;
8
+ type: PropType<MarkColor>;
7
9
  default: string;
8
- typeDesc: string;
10
+ validator: (value: MarkColor) => boolean;
11
+ description: string;
12
+ };
13
+ bold: {
14
+ type: PropType<BoldValue | string>;
15
+ default: number;
16
+ validator: (value: BoldValue | string) => boolean;
9
17
  description: string;
10
18
  };
11
19
  round: {
@@ -14,13 +22,9 @@ export declare const markProps: {
14
22
  description: string;
15
23
  };
16
24
  cursor: {
17
- type: StringConstructor;
25
+ type: PropType<CursorStyle>;
18
26
  default: string;
19
- description: string;
20
- };
21
- bold: {
22
- type: NumberConstructor;
23
- default: number;
27
+ validator: (value: CursorStyle) => boolean;
24
28
  description: string;
25
29
  };
26
30
  };
@@ -2,34 +2,38 @@ import { MenuOptions } from './props';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  options: {
5
- type: globalThis.PropType<MenuOptions[]>;
5
+ type: PropType<MenuOptions[]>;
6
6
  default: never[];
7
- typeDesc: string;
8
7
  description: string;
8
+ typeDesc: string;
9
+ validator: (value: unknown) => boolean;
9
10
  };
10
- actived: {
11
+ active: {
11
12
  type: StringConstructor;
12
13
  default: string;
13
14
  description: string;
15
+ validator: (value: unknown) => boolean;
14
16
  };
15
17
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
18
  change: (...args: any[]) => void;
17
19
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
20
  options: {
19
- type: globalThis.PropType<MenuOptions[]>;
21
+ type: PropType<MenuOptions[]>;
20
22
  default: never[];
21
- typeDesc: string;
22
23
  description: string;
24
+ typeDesc: string;
25
+ validator: (value: unknown) => boolean;
23
26
  };
24
- actived: {
27
+ active: {
25
28
  type: StringConstructor;
26
29
  default: string;
27
30
  description: string;
31
+ validator: (value: unknown) => boolean;
28
32
  };
29
33
  }>> & {
30
34
  onChange?: ((...args: any[]) => any) | undefined;
31
35
  }, {
32
36
  options: MenuOptions[];
33
- actived: string;
37
+ active: string;
34
38
  }, {}>;
35
39
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { TagColor } from '../../..';
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { LewColor } from '../../..';
3
3
 
4
4
  export type MenuOptions = {
5
5
  label: string;
@@ -9,19 +9,21 @@ export type MenuOptions = {
9
9
  level?: number;
10
10
  icon?: string;
11
11
  tagText?: string;
12
- tagColor?: TagColor;
12
+ tagColor?: LewColor;
13
13
  };
14
14
  export declare const menuProps: {
15
15
  options: {
16
16
  type: PropType<MenuOptions[]>;
17
17
  default: never[];
18
- typeDesc: string;
19
18
  description: string;
19
+ typeDesc: string;
20
+ validator: (value: unknown) => boolean;
20
21
  };
21
- actived: {
22
+ active: {
22
23
  type: StringConstructor;
23
24
  default: string;
24
25
  description: string;
26
+ validator: (value: unknown) => boolean;
25
27
  };
26
28
  };
27
29
  export type MenuProps = ExtractPropTypes<typeof menuProps>;
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  typeDesc: string;
8
8
  description: string;
9
9
  };
10
- actived: {
10
+ active: {
11
11
  type: StringConstructor;
12
12
  default: string;
13
13
  description: string;
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{
21
21
  typeDesc: string;
22
22
  description: string;
23
23
  };
24
- actived: {
24
+ active: {
25
25
  type: StringConstructor;
26
26
  default: string;
27
27
  description: string;
@@ -30,6 +30,6 @@ declare const _default: import('vue').DefineComponent<{
30
30
  onChange?: ((...args: any[]) => any) | undefined;
31
31
  }, {
32
32
  options: MenuTreeOptions[];
33
- actived: string;
33
+ active: string;
34
34
  }, {}>;
35
35
  export default _default;