lew-ui 2.1.4 → 2.1.5

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 (146) hide show
  1. package/dist/components/alert/__test__/alert.test.d.ts +1 -0
  2. package/dist/components/alert/index.d.ts +2 -0
  3. package/dist/components/alert/src/LewAlert.vue.d.ts +22 -0
  4. package/dist/components/alert/src/props.d.ts +16 -0
  5. package/dist/components/avatar/index.d.ts +2 -0
  6. package/dist/components/avatar/src/LewAvatar.vue.d.ts +93 -0
  7. package/dist/components/avatar/src/props.d.ts +48 -0
  8. package/dist/components/backtop/index.d.ts +2 -0
  9. package/dist/components/backtop/src/LewBackTop.vue.d.ts +60 -0
  10. package/dist/components/backtop/src/props.d.ts +25 -0
  11. package/dist/components/badge/index.d.ts +2 -0
  12. package/dist/components/badge/src/LewBadge.vue.d.ts +34 -0
  13. package/dist/components/badge/src/props.d.ts +17 -0
  14. package/dist/components/breadcrumb/index.d.ts +2 -0
  15. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +27 -0
  16. package/dist/components/breadcrumb/src/props.d.ts +21 -0
  17. package/dist/components/button/__test__/button.test.d.ts +1 -0
  18. package/dist/components/button/index.d.ts +2 -0
  19. package/dist/components/button/src/LewButton.vue.d.ts +126 -0
  20. package/dist/components/button/src/props.d.ts +58 -0
  21. package/dist/components/cascader/index.d.ts +2 -0
  22. package/dist/components/cascader/src/LewCascader.vue.d.ts +148 -0
  23. package/dist/components/cascader/src/props.d.ts +80 -0
  24. package/dist/components/checkbox/index.d.ts +3 -0
  25. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +110 -0
  26. package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +8 -0
  27. package/dist/components/checkbox/src/props.d.ts +116 -0
  28. package/dist/components/date-picker/index.d.ts +5 -0
  29. package/dist/components/date-picker/src/LewDate.vue.d.ts +12 -0
  30. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +71 -0
  31. package/dist/components/date-picker/src/LewDateRange.vue.d.ts +35 -0
  32. package/dist/components/date-picker/src/LewDateRangePicker.vue.d.ts +104 -0
  33. package/dist/components/date-picker/src/date.d.ts +9 -0
  34. package/dist/components/date-picker/src/props.d.ts +101 -0
  35. package/dist/components/drawer/index.d.ts +2 -0
  36. package/dist/components/drawer/src/LewDrawer.vue.d.ts +60 -0
  37. package/dist/components/drawer/src/props.d.ts +27 -0
  38. package/dist/components/dropdown/index.d.ts +2 -0
  39. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +87 -0
  40. package/dist/components/dropdown/src/props.d.ts +39 -0
  41. package/dist/components/empty/index.d.ts +2 -0
  42. package/dist/components/empty/src/LewEmpty.vue.d.ts +51 -0
  43. package/dist/components/empty/src/props.d.ts +28 -0
  44. package/dist/components/flex/index.d.ts +2 -0
  45. package/dist/components/flex/src/LewFlex.vue.d.ts +95 -0
  46. package/dist/components/flex/src/props.d.ts +43 -0
  47. package/dist/components/form/index.d.ts +2 -0
  48. package/dist/components/form/src/LewForm.vue.d.ts +56 -0
  49. package/dist/components/form/src/props.d.ts +37 -0
  50. package/dist/components/icon/index.d.ts +3 -0
  51. package/dist/components/index.d.ts +37 -0
  52. package/dist/components/input/index.d.ts +2 -0
  53. package/dist/components/input/src/LewInput.vue.d.ts +275 -0
  54. package/dist/components/input/src/props.d.ts +134 -0
  55. package/dist/components/input-tag/index.d.ts +2 -0
  56. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +12 -0
  57. package/dist/components/input-tag/src/props.d.ts +10 -0
  58. package/dist/components/magic-number/index.d.ts +2 -0
  59. package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +38 -0
  60. package/dist/components/magic-number/src/props.d.ts +20 -0
  61. package/dist/components/mark/index.d.ts +2 -0
  62. package/dist/components/mark/src/LewMark.vue.d.ts +58 -0
  63. package/dist/components/mark/src/props.d.ts +28 -0
  64. package/dist/components/menu/index.d.ts +2 -0
  65. package/dist/components/menu/src/LewMenu.vue.d.ts +35 -0
  66. package/dist/components/menu/src/props.d.ts +26 -0
  67. package/dist/components/modal/index.d.ts +2 -0
  68. package/dist/components/modal/src/LewModal.vue.d.ts +161 -0
  69. package/dist/components/modal/src/props.d.ts +65 -0
  70. package/dist/components/pagination/index.d.ts +2 -0
  71. package/dist/components/pagination/src/LewPagination.vue.d.ts +42 -0
  72. package/dist/components/pagination/src/props.d.ts +39 -0
  73. package/dist/components/popok/index.d.ts +2 -0
  74. package/dist/components/popok/src/LewPopok.vue.d.ts +146 -0
  75. package/dist/components/popok/src/props.d.ts +52 -0
  76. package/dist/components/popover/index.d.ts +2 -0
  77. package/dist/components/popover/src/LewPopover.vue.d.ts +118 -0
  78. package/dist/components/popover/src/props.d.ts +47 -0
  79. package/dist/components/radio/index.d.ts +2 -0
  80. package/dist/components/radio/src/LewRadio.vue.d.ts +97 -0
  81. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +90 -0
  82. package/dist/components/radio/src/props.d.ts +96 -0
  83. package/dist/components/result/index.d.ts +2 -0
  84. package/dist/components/result/src/LewResult.vue.d.ts +45 -0
  85. package/dist/components/result/src/props.d.ts +17 -0
  86. package/dist/components/select/index.d.ts +2 -0
  87. package/dist/components/select/src/LewSelect.vue.d.ts +186 -0
  88. package/dist/components/select/src/props.d.ts +90 -0
  89. package/dist/components/select-multiple/index.d.ts +2 -0
  90. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +212 -0
  91. package/dist/components/select-multiple/src/props.d.ts +100 -0
  92. package/dist/components/steps/index.d.ts +2 -0
  93. package/dist/components/steps/src/props.d.ts +39 -0
  94. package/dist/components/switch/index.d.ts +2 -0
  95. package/dist/components/switch/src/LewSwitch.vue.d.ts +57 -0
  96. package/dist/components/switch/src/props.d.ts +34 -0
  97. package/dist/components/table/index.d.ts +2 -0
  98. package/dist/components/table/src/LewTable.vue.d.ts +88 -0
  99. package/dist/components/table/src/props.d.ts +43 -0
  100. package/dist/components/tabs/index.d.ts +2 -0
  101. package/dist/components/tabs/src/LewTabs.vue.d.ts +85 -0
  102. package/dist/components/tabs/src/props.d.ts +49 -0
  103. package/dist/components/tag/index.d.ts +2 -0
  104. package/dist/components/tag/src/LewTag.vue.d.ts +84 -0
  105. package/dist/components/tag/src/props.d.ts +39 -0
  106. package/dist/components/text-trim/index.d.ts +2 -0
  107. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +82 -0
  108. package/dist/components/text-trim/src/props.d.ts +40 -0
  109. package/dist/components/textarea/index.d.ts +2 -0
  110. package/dist/components/textarea/src/LewTextarea.vue.d.ts +159 -0
  111. package/dist/components/textarea/src/props.d.ts +72 -0
  112. package/dist/components/title/index.d.ts +2 -0
  113. package/dist/components/title/src/LewTitle.vue.d.ts +45 -0
  114. package/dist/components/title/src/props.d.ts +23 -0
  115. package/dist/components/tree/index.d.ts +2 -0
  116. package/dist/components/tree/src/LewTree.vue.d.ts +189 -0
  117. package/dist/components/tree/src/props.d.ts +99 -0
  118. package/dist/components/tree/src/tree2list.d.ts +25 -0
  119. package/dist/components/tree-select/index.d.ts +2 -0
  120. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +263 -0
  121. package/dist/components/tree-select/src/props.d.ts +136 -0
  122. package/dist/directives/backtop/index.d.ts +1 -0
  123. package/dist/directives/backtop/src/index.d.ts +6 -0
  124. package/dist/directives/dialog/index.d.ts +2 -0
  125. package/dist/directives/dialog/src/LewDialog.vue.d.ts +118 -0
  126. package/dist/directives/dialog/src/index.d.ts +20 -0
  127. package/dist/directives/dialog/src/props.d.ts +50 -0
  128. package/dist/directives/index.d.ts +6 -0
  129. package/dist/directives/loading/index.d.ts +1 -0
  130. package/dist/directives/loading/src/index.d.ts +6 -0
  131. package/dist/directives/message/index.d.ts +1 -0
  132. package/dist/directives/message/src/index.d.ts +3 -0
  133. package/dist/directives/notification/index.d.ts +2 -0
  134. package/dist/directives/notification/src/index.d.ts +17 -0
  135. package/dist/directives/tooltip/index.d.ts +1 -0
  136. package/dist/directives/tooltip/src/index.d.ts +6 -0
  137. package/dist/hooks/index.d.ts +3 -0
  138. package/dist/hooks/src/useDOMCreate.d.ts +1 -0
  139. package/dist/hooks/src/useEventListener.d.ts +1 -0
  140. package/dist/hooks/src/useLewTo.d.ts +3 -0
  141. package/dist/index.d.ts +8 -0
  142. package/dist/index.mjs +3154 -7012
  143. package/dist/index.umd.js +243 -251
  144. package/dist/style.css +1 -1
  145. package/dist/utils/index.d.ts +12 -0
  146. package/package.json +7 -5
@@ -0,0 +1,189 @@
1
+ import { TreeDataSource } from './props';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
+ modelValue: globalThis.PropType<string | (string | number)[] | undefined>;
5
+ expandedKeys: globalThis.PropType<(string | number)[] | undefined>;
6
+ dataSource: {
7
+ type: globalThis.PropType<TreeDataSource[]>;
8
+ default: never[];
9
+ description: string;
10
+ };
11
+ multiple: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ description: string;
15
+ };
16
+ showCheckbox: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ description: string;
20
+ };
21
+ expandAll: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ description: string;
25
+ };
26
+ free: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ description: string;
30
+ };
31
+ showLine: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ description: string;
35
+ };
36
+ trigger: {
37
+ type: globalThis.PropType<import('./props').TreeTriggerType>;
38
+ default: string;
39
+ description: string;
40
+ };
41
+ placeholder: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ description: string;
45
+ };
46
+ keyField: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ description: string;
50
+ };
51
+ labelField: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ description: string;
55
+ };
56
+ disabledField: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ description: string;
60
+ };
61
+ initTree: {
62
+ type: globalThis.PropType<() => void> | undefined;
63
+ default: undefined;
64
+ description: string;
65
+ };
66
+ onload: {
67
+ type: globalThis.PropType<(item: TreeDataSource) => void> | undefined;
68
+ default: undefined;
69
+ description: string;
70
+ };
71
+ }, {
72
+ init: (keyword?: string) => Promise<any>;
73
+ getTreeList: () => any;
74
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
+ change: (...args: any[]) => void;
76
+ initSuccess: (...args: any[]) => void;
77
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
78
+ modelValue: globalThis.PropType<string | (string | number)[] | undefined>;
79
+ expandedKeys: globalThis.PropType<(string | number)[] | undefined>;
80
+ dataSource: {
81
+ type: globalThis.PropType<TreeDataSource[]>;
82
+ default: never[];
83
+ description: string;
84
+ };
85
+ multiple: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ description: string;
89
+ };
90
+ showCheckbox: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ description: string;
94
+ };
95
+ expandAll: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ description: string;
99
+ };
100
+ free: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ description: string;
104
+ };
105
+ showLine: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ description: string;
109
+ };
110
+ trigger: {
111
+ type: globalThis.PropType<import('./props').TreeTriggerType>;
112
+ default: string;
113
+ description: string;
114
+ };
115
+ placeholder: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ description: string;
119
+ };
120
+ keyField: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ description: string;
124
+ };
125
+ labelField: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ description: string;
129
+ };
130
+ disabledField: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ description: string;
134
+ };
135
+ initTree: {
136
+ type: globalThis.PropType<() => void> | undefined;
137
+ default: undefined;
138
+ description: string;
139
+ };
140
+ onload: {
141
+ type: globalThis.PropType<(item: TreeDataSource) => void> | undefined;
142
+ default: undefined;
143
+ description: string;
144
+ };
145
+ }>> & {
146
+ onChange?: ((...args: any[]) => any) | undefined;
147
+ onInitSuccess?: ((...args: any[]) => any) | undefined;
148
+ }, {
149
+ multiple: boolean;
150
+ free: boolean;
151
+ trigger: import('./props').TreeTriggerType;
152
+ placeholder: string;
153
+ onload: (item: TreeDataSource) => void;
154
+ dataSource: TreeDataSource[];
155
+ keyField: string;
156
+ labelField: string;
157
+ initTree: () => void;
158
+ showCheckbox: boolean;
159
+ expandAll: boolean;
160
+ showLine: boolean;
161
+ disabledField: string;
162
+ }, {}>, {
163
+ item?(_: {
164
+ props: {
165
+ checked: boolean;
166
+ label: string;
167
+ key: string;
168
+ level: number;
169
+ isLeaf?: boolean | undefined;
170
+ loading?: boolean | undefined;
171
+ disabled?: boolean | undefined;
172
+ parentKey?: string | number | undefined;
173
+ treeIndex?: number | undefined;
174
+ labelPaths?: string[] | undefined;
175
+ valueKeys?: string[] | undefined;
176
+ parentKeyPaths?: string[] | undefined;
177
+ parentLabelPaths?: string[] | undefined;
178
+ allNodeValues: string[];
179
+ leafNodeValues: string[];
180
+ children?: TreeDataSource[] | undefined;
181
+ };
182
+ }): any;
183
+ }>;
184
+ export default _default;
185
+ type __VLS_WithTemplateSlots<T, S> = T & {
186
+ new (): {
187
+ $slots: S;
188
+ };
189
+ };
@@ -0,0 +1,99 @@
1
+ import { PropType } from 'vue';
2
+
3
+ export type TreeDataSource = {
4
+ label: string;
5
+ key: string;
6
+ level: number;
7
+ isLeaf?: boolean;
8
+ loading?: boolean;
9
+ disabled?: boolean;
10
+ parentKey?: string | number;
11
+ treeIndex?: number;
12
+ labelPaths?: string[];
13
+ valueKeys?: string[];
14
+ parentKeyPaths?: string[];
15
+ parentLabelPaths?: string[];
16
+ allNodeValues: string[];
17
+ leafNodeValues: string[];
18
+ children?: TreeDataSource[];
19
+ };
20
+ export type TreeTriggerType = 'click' | 'hover';
21
+ export declare const treeModel: {
22
+ modelValue: {
23
+ type: (ArrayConstructor | StringConstructor)[];
24
+ default: never[];
25
+ description: string;
26
+ };
27
+ expandedKeys: {
28
+ type: (ArrayConstructor | StringConstructor)[];
29
+ default: never[];
30
+ description: string;
31
+ };
32
+ };
33
+ export declare const treeProps: {
34
+ dataSource: {
35
+ type: PropType<TreeDataSource[]>;
36
+ default: never[];
37
+ description: string;
38
+ };
39
+ multiple: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ description: string;
43
+ };
44
+ showCheckbox: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ description: string;
48
+ };
49
+ expandAll: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ description: string;
53
+ };
54
+ free: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ description: string;
58
+ };
59
+ showLine: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ description: string;
63
+ };
64
+ trigger: {
65
+ type: PropType<TreeTriggerType>;
66
+ default: string;
67
+ description: string;
68
+ };
69
+ placeholder: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ description: string;
73
+ };
74
+ keyField: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ description: string;
78
+ };
79
+ labelField: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ description: string;
83
+ };
84
+ disabledField: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ description: string;
88
+ };
89
+ initTree: {
90
+ type: PropType<() => void> | undefined;
91
+ default: undefined;
92
+ description: string;
93
+ };
94
+ onload: {
95
+ type: PropType<(item: TreeDataSource) => void> | undefined;
96
+ default: undefined;
97
+ description: string;
98
+ };
99
+ };
@@ -0,0 +1,25 @@
1
+ import { TreeDataSource } from './props';
2
+
3
+ export declare const flattenTree: (tree: TreeDataSource[]) => TreeDataSource[];
4
+ export declare const findAllNodes: (tree?: TreeDataSource[], keyField?: string) => unknown[];
5
+ export declare const findLeafNodes: (tree?: TreeDataSource[], keyField?: string) => unknown[];
6
+ export declare const formatTree: ({ dataSource, parent, parentKeyPaths, parentLabelPaths, keyField, labelField, free }: {
7
+ dataSource: TreeDataSource[];
8
+ parent?: any;
9
+ parentKeyPaths?: String[];
10
+ parentLabelPaths?: String[];
11
+ keyField?: string;
12
+ labelField?: string;
13
+ free?: boolean;
14
+ }) => TreeDataSource[];
15
+ export declare const tree2List: ({ initTree, dataSource, keyField, labelField, free, keyword }: {
16
+ initTree?: any;
17
+ dataSource?: TreeDataSource[];
18
+ keyField?: string;
19
+ labelField?: string;
20
+ free?: boolean;
21
+ keyword?: string;
22
+ }) => Promise<Error | {
23
+ newTree: TreeDataSource[];
24
+ newTreeList: TreeDataSource[];
25
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as LewTreeSelect } from './src/LewTreeSelect.vue';
2
+ export * from './src/props';
@@ -0,0 +1,263 @@
1
+ import { TreeDataSource } from '../../tree';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
+ modelValue: globalThis.PropType<string | number | undefined>;
5
+ dataSource: {
6
+ type: globalThis.PropType<TreeDataSource[]>;
7
+ default: never[];
8
+ description: string;
9
+ };
10
+ trigger: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ description: string;
14
+ };
15
+ placeholder: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ description: string;
19
+ };
20
+ size: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ description: string;
24
+ };
25
+ searchable: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ description: string;
29
+ };
30
+ searchDelay: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ description: string;
34
+ };
35
+ clearable: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ description: string;
39
+ };
40
+ readonly: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ description: string;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ description: string;
49
+ };
50
+ align: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ description: string;
54
+ };
55
+ showCheckIcon: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ description: string;
59
+ };
60
+ keyField: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ description: string;
64
+ };
65
+ labelField: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ description: string;
69
+ };
70
+ disabledField: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ description: string;
74
+ };
75
+ defaultValue: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ description: string;
79
+ };
80
+ showCheckbox: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ description: string;
84
+ };
85
+ initTree: {
86
+ type: globalThis.PropType<(keyword: string) => void> | undefined;
87
+ default: undefined;
88
+ description: string;
89
+ };
90
+ onload: {
91
+ type: globalThis.PropType<() => void> | undefined;
92
+ default: undefined;
93
+ description: string;
94
+ };
95
+ showLine: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ description: string;
99
+ };
100
+ expandAll: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ description: string;
104
+ };
105
+ free: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ description: string;
109
+ };
110
+ }, {
111
+ show: () => void;
112
+ hide: () => void;
113
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
114
+ change: (...args: any[]) => void;
115
+ blur: (...args: any[]) => void;
116
+ clear: (...args: any[]) => void;
117
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
118
+ modelValue: globalThis.PropType<string | number | undefined>;
119
+ dataSource: {
120
+ type: globalThis.PropType<TreeDataSource[]>;
121
+ default: never[];
122
+ description: string;
123
+ };
124
+ trigger: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ description: string;
128
+ };
129
+ placeholder: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ description: string;
133
+ };
134
+ size: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ description: string;
138
+ };
139
+ searchable: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ description: string;
143
+ };
144
+ searchDelay: {
145
+ type: NumberConstructor;
146
+ default: number;
147
+ description: string;
148
+ };
149
+ clearable: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ description: string;
153
+ };
154
+ readonly: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ description: string;
158
+ };
159
+ disabled: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ description: string;
163
+ };
164
+ align: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ description: string;
168
+ };
169
+ showCheckIcon: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ description: string;
173
+ };
174
+ keyField: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ description: string;
178
+ };
179
+ labelField: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ description: string;
183
+ };
184
+ disabledField: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ description: string;
188
+ };
189
+ defaultValue: {
190
+ type: StringConstructor;
191
+ default: string;
192
+ description: string;
193
+ };
194
+ showCheckbox: {
195
+ type: BooleanConstructor;
196
+ default: boolean;
197
+ description: string;
198
+ };
199
+ initTree: {
200
+ type: globalThis.PropType<(keyword: string) => void> | undefined;
201
+ default: undefined;
202
+ description: string;
203
+ };
204
+ onload: {
205
+ type: globalThis.PropType<() => void> | undefined;
206
+ default: undefined;
207
+ description: string;
208
+ };
209
+ showLine: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ description: string;
213
+ };
214
+ expandAll: {
215
+ type: BooleanConstructor;
216
+ default: boolean;
217
+ description: string;
218
+ };
219
+ free: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ description: string;
223
+ };
224
+ }>> & {
225
+ onBlur?: ((...args: any[]) => any) | undefined;
226
+ onChange?: ((...args: any[]) => any) | undefined;
227
+ onClear?: ((...args: any[]) => any) | undefined;
228
+ }, {
229
+ size: string;
230
+ disabled: boolean;
231
+ free: boolean;
232
+ trigger: string;
233
+ placeholder: string;
234
+ onload: () => void;
235
+ clearable: boolean;
236
+ readonly: boolean;
237
+ align: string;
238
+ showCheckIcon: boolean;
239
+ defaultValue: string;
240
+ searchable: boolean;
241
+ searchDelay: number;
242
+ dataSource: TreeDataSource[];
243
+ keyField: string;
244
+ labelField: string;
245
+ initTree: (keyword: string) => void;
246
+ showCheckbox: boolean;
247
+ expandAll: boolean;
248
+ showLine: boolean;
249
+ disabledField: string;
250
+ }, {}>, {
251
+ header?(_: {}): any;
252
+ empty?(_: {}): any;
253
+ item?(_: {
254
+ props: any;
255
+ }): any;
256
+ footer?(_: {}): any;
257
+ }>;
258
+ export default _default;
259
+ type __VLS_WithTemplateSlots<T, S> = T & {
260
+ new (): {
261
+ $slots: S;
262
+ };
263
+ };
@@ -0,0 +1,136 @@
1
+ import { TreeDataSource } from '../../tree';
2
+ import { PropType } from 'vue';
3
+
4
+ export type TreeSelectOptions = {
5
+ label: string;
6
+ value: [string, number];
7
+ labelPaths?: string[];
8
+ keysPaths?: string[];
9
+ level: number;
10
+ isLeaf?: boolean;
11
+ loading?: boolean;
12
+ disabled?: boolean;
13
+ parentLabelPaths?: string[];
14
+ parentKeysPaths?: string[];
15
+ parentChildren?: TreeSelectOptions[];
16
+ children?: TreeSelectOptions[];
17
+ };
18
+ export type TreeSelectTriggerType = 'click' | 'hover';
19
+ export declare const treeSelectModel: {
20
+ modelValue: {
21
+ type: (StringConstructor | NumberConstructor | undefined)[];
22
+ default: string;
23
+ description: string;
24
+ };
25
+ };
26
+ export type TreeSelectSearchMethodParams = {
27
+ item?: TreeDataSource;
28
+ keyword?: string;
29
+ };
30
+ export declare const treeSelectProps: {
31
+ dataSource: {
32
+ type: PropType<TreeDataSource[]>;
33
+ default: never[];
34
+ description: string;
35
+ };
36
+ trigger: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ description: string;
40
+ };
41
+ placeholder: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ description: string;
45
+ };
46
+ size: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ description: string;
50
+ };
51
+ searchable: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ description: string;
55
+ };
56
+ searchDelay: {
57
+ type: NumberConstructor;
58
+ default: number;
59
+ description: string;
60
+ };
61
+ clearable: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ description: string;
65
+ };
66
+ readonly: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ description: string;
70
+ };
71
+ disabled: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ description: string;
75
+ };
76
+ align: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ description: string;
80
+ };
81
+ showCheckIcon: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ description: string;
85
+ };
86
+ keyField: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ description: string;
90
+ };
91
+ labelField: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ description: string;
95
+ };
96
+ disabledField: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ description: string;
100
+ };
101
+ defaultValue: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ description: string;
105
+ };
106
+ showCheckbox: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ description: string;
110
+ };
111
+ initTree: {
112
+ type: PropType<(keyword: string) => void> | undefined;
113
+ default: undefined;
114
+ description: string;
115
+ };
116
+ onload: {
117
+ type: PropType<() => void> | undefined;
118
+ default: undefined;
119
+ description: string;
120
+ };
121
+ showLine: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ description: string;
125
+ };
126
+ expandAll: {
127
+ type: BooleanConstructor;
128
+ default: boolean;
129
+ description: string;
130
+ };
131
+ free: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ description: string;
135
+ };
136
+ };
@@ -0,0 +1 @@
1
+ export { default as LewBacktop } from './src';