lew-ui 2.6.37 → 2.7.3

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 (35) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +46 -46
  3. package/README.zh-CN.md +48 -48
  4. package/dist/components/cascader/src/LewCascader.vue.d.ts +21 -0
  5. package/dist/components/cascader/src/props.d.ts +10 -0
  6. package/dist/components/select/src/LewSelect.vue.d.ts +36 -0
  7. package/dist/components/select/src/props.d.ts +16 -0
  8. package/dist/components/select/src/util.d.ts +1 -1
  9. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +35 -1
  10. package/dist/components/select-multiple/src/props.d.ts +15 -0
  11. package/dist/components/slider/src/LewSlider.vue.d.ts +4 -4
  12. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +8 -4
  13. package/dist/components/text-trim/src/text-trim.d.ts +1 -1
  14. package/dist/components/tree/src/LewTree.vue.d.ts +5 -5
  15. package/dist/components/tree/src/props.d.ts +1 -1
  16. package/dist/components/tree/src/transformTree.d.ts +3 -3
  17. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +31 -8
  18. package/dist/components/tree-select/src/props.d.ts +13 -2
  19. package/dist/index.mjs +1263 -471
  20. package/dist/index.umd.js +4 -4
  21. package/dist/locals/de.d.ts +15 -0
  22. package/dist/locals/en.d.ts +15 -0
  23. package/dist/locals/es.d.ts +15 -0
  24. package/dist/locals/fr.d.ts +15 -0
  25. package/dist/locals/it.d.ts +15 -0
  26. package/dist/locals/ja.d.ts +15 -0
  27. package/dist/locals/ko.d.ts +15 -0
  28. package/dist/locals/pt.d.ts +15 -0
  29. package/dist/locals/zh.d.ts +3 -0
  30. package/dist/methods/dialog/src/LewDialog.vue.d.ts +2 -0
  31. package/dist/methods/dialog/src/props.d.ts +1 -0
  32. package/dist/methods/notification/src/index.d.ts +5 -5
  33. package/dist/style.css +1 -1
  34. package/dist/utils/index.d.ts +4 -4
  35. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 lew
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 lew
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # Lew UI
2
-
3
- A Component Library for Vue3. Doc address: https://lew.kamtao.com
4
-
5
- English | [中文](./README.zh-CN.md)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install lew-ui
11
- ```
12
-
13
- ## How to use
14
-
15
- ```js
16
- // main.ts
17
- import 'lew-ui/style'
18
- ```
19
-
20
- ```vue
21
- <script setup lang="ts">
22
- // page.vue
23
- import { LewButton } from 'lew-ui'
24
- </script>
25
-
26
- <template>
27
- <lew-button text="Submit" />
28
- </template>
29
- ```
30
-
31
- ## Open Source Libraries
32
-
33
- Lew UI uses the following open source libraries:
34
-
35
- - [Tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
- - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
- - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
38
- - [Day.js](https://day.js.org/): Lightweight library for date manipulation
39
- - [Yup](https://github.com/jquense/yup): Object schema validation library
40
- - [vue-virt-list](https://github.com/kolarorz/vue-virt-list): Virtual list
41
-
42
- We are grateful for the support these excellent open source projects provide to Lew UI.
43
-
44
- ## License
45
-
46
- Lew UI is open source software licensed as MIT.
1
+ # Lew UI
2
+
3
+ A Component Library for Vue3. Doc address: https://lew.kamtao.com
4
+
5
+ English | [中文](./README.zh-CN.md)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ ```js
16
+ // main.ts
17
+ import 'lew-ui/style'
18
+ ```
19
+
20
+ ```vue
21
+ <script setup lang="ts">
22
+ // page.vue
23
+ import { LewButton } from 'lew-ui'
24
+ </script>
25
+
26
+ <template>
27
+ <lew-button text="Submit" />
28
+ </template>
29
+ ```
30
+
31
+ ## Open Source Libraries
32
+
33
+ Lew UI uses the following open source libraries:
34
+
35
+ - [Tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
+ - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
+ - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
38
+ - [Day.js](https://day.js.org/): Lightweight library for date manipulation
39
+ - [Yup](https://github.com/jquense/yup): Object schema validation library
40
+ - [vue-virt-list](https://github.com/kolarorz/vue-virt-list): Virtual list
41
+
42
+ We are grateful for the support these excellent open source projects provide to Lew UI.
43
+
44
+ ## License
45
+
46
+ Lew UI is open source software licensed as MIT.
package/README.zh-CN.md CHANGED
@@ -1,48 +1,48 @@
1
- # Lew UI
2
-
3
- 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
-
5
- [英文](./README.md) | 中文
6
-
7
- ## 安装
8
-
9
- ```bash
10
- npm install lew-ui
11
- ```
12
-
13
- ## 如何使用
14
-
15
- main.ts
16
-
17
- ```js
18
- // main.ts
19
- import 'lew-ui/style'
20
- ```
21
-
22
- ```vue
23
- <script setup lang="ts">
24
- // page.vue
25
- import { LewButton } from 'lew-ui'
26
- </script>
27
-
28
- <template>
29
- <lew-button text="提交" />
30
- </template>
31
- ```
32
-
33
- ## 开源库声明
34
-
35
- Lew UI 使用了以下开源库:
36
-
37
- - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
- - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
- - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
40
- - [Day.js](https://day.js.org/): 轻量级日期处理库
41
- - [Yup](https://github.com/jquense/yup): 对象模式验证库
42
- - [vue-virt-list](https://github.com/kolarorz/vue-virt-list): 虚拟列表
43
-
44
- 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
45
-
46
- ## 许可证
47
-
48
- Lew UI 是根据 MIT 许可证的开源软件。
1
+ # Lew UI
2
+
3
+ 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
+
5
+ [英文](./README.md) | 中文
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## 如何使用
14
+
15
+ main.ts
16
+
17
+ ```js
18
+ // main.ts
19
+ import 'lew-ui/style'
20
+ ```
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ // page.vue
25
+ import { LewButton } from 'lew-ui'
26
+ </script>
27
+
28
+ <template>
29
+ <lew-button text="提交" />
30
+ </template>
31
+ ```
32
+
33
+ ## 开源库声明
34
+
35
+ Lew UI 使用了以下开源库:
36
+
37
+ - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
+ - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
+ - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
40
+ - [Day.js](https://day.js.org/): 轻量级日期处理库
41
+ - [Yup](https://github.com/jquense/yup): 对象模式验证库
42
+ - [vue-virt-list](https://github.com/kolarorz/vue-virt-list): 虚拟列表
43
+
44
+ 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
45
+
46
+ ## 许可证
47
+
48
+ Lew UI 是根据 MIT 许可证的开源软件。
@@ -68,6 +68,16 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
68
68
  hidden: boolean;
69
69
  description: string;
70
70
  };
71
+ initOptionsMethod: {
72
+ type: FunctionConstructor;
73
+ description: string;
74
+ };
75
+ initOptionsMethodId: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ hidden: boolean;
79
+ description: string;
80
+ };
71
81
  readonly: {
72
82
  type: BooleanConstructor;
73
83
  default: boolean;
@@ -145,6 +155,16 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
145
155
  hidden: boolean;
146
156
  description: string;
147
157
  };
158
+ initOptionsMethod: {
159
+ type: FunctionConstructor;
160
+ description: string;
161
+ };
162
+ initOptionsMethodId: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ hidden: boolean;
166
+ description: string;
167
+ };
148
168
  readonly: {
149
169
  type: BooleanConstructor;
150
170
  default: boolean;
@@ -162,6 +182,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
162
182
  options: CascaderOptions[];
163
183
  readonly: boolean;
164
184
  clearable: boolean;
185
+ initOptionsMethodId: string;
165
186
  showAllLevels: boolean;
166
187
  multiple: boolean;
167
188
  free: boolean;
@@ -86,6 +86,16 @@ export declare const cascaderProps: {
86
86
  hidden: boolean;
87
87
  description: string;
88
88
  };
89
+ initOptionsMethod: {
90
+ type: FunctionConstructor;
91
+ description: string;
92
+ };
93
+ initOptionsMethodId: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ hidden: boolean;
97
+ description: string;
98
+ };
89
99
  readonly: {
90
100
  type: BooleanConstructor;
91
101
  default: boolean;
@@ -66,6 +66,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
66
66
  default: undefined;
67
67
  description: string;
68
68
  };
69
+ initOptionsMethod: {
70
+ type: PropType<() => (SelectOptions[] | import('../../..').SelectOptionsGroup[]) | Promise<SelectOptions[] | import('../../..').SelectOptionsGroup[]>>;
71
+ default: undefined;
72
+ description: string;
73
+ };
74
+ initOptionsMethodId: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ hidden: boolean;
78
+ description: string;
79
+ };
69
80
  searchMethodId: {
70
81
  type: StringConstructor;
71
82
  default: string;
@@ -97,9 +108,15 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
97
108
  default: boolean;
98
109
  description: string;
99
110
  };
111
+ enableSearchCache: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ description: string;
115
+ };
100
116
  }>, {
101
117
  show: () => void;
102
118
  hide: () => void;
119
+ clearSearchCache: () => void;
103
120
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
104
121
  blur: (...args: any[]) => void;
105
122
  change: (...args: any[]) => void;
@@ -163,6 +180,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
163
180
  default: undefined;
164
181
  description: string;
165
182
  };
183
+ initOptionsMethod: {
184
+ type: PropType<() => (SelectOptions[] | import('../../..').SelectOptionsGroup[]) | Promise<SelectOptions[] | import('../../..').SelectOptionsGroup[]>>;
185
+ default: undefined;
186
+ description: string;
187
+ };
188
+ initOptionsMethodId: {
189
+ type: StringConstructor;
190
+ default: string;
191
+ hidden: boolean;
192
+ description: string;
193
+ };
166
194
  searchMethodId: {
167
195
  type: StringConstructor;
168
196
  default: string;
@@ -194,6 +222,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
194
222
  default: boolean;
195
223
  description: string;
196
224
  };
225
+ enableSearchCache: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ description: string;
229
+ };
197
230
  }>> & Readonly<{
198
231
  onBlur?: ((...args: any[]) => any) | undefined;
199
232
  onChange?: ((...args: any[]) => any) | undefined;
@@ -213,9 +246,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
213
246
  itemHeight: number;
214
247
  searchable: boolean;
215
248
  searchMethod: (params: import('../../..').SelectSearchMethodParams) => SelectOptions[];
249
+ initOptionsMethod: () => (SelectOptions[] | import('../../..').SelectOptionsGroup[]) | Promise<SelectOptions[] | import('../../..').SelectOptionsGroup[]>;
250
+ initOptionsMethodId: string;
216
251
  searchMethodId: string;
217
252
  searchDelay: number;
218
253
  showCheckIcon: boolean;
254
+ enableSearchCache: boolean;
219
255
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
220
256
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
221
257
  export default _default;
@@ -82,6 +82,17 @@ export declare const selectProps: {
82
82
  default: undefined;
83
83
  description: string;
84
84
  };
85
+ initOptionsMethod: {
86
+ type: PropType<() => (SelectOptions[] | SelectOptionsGroup[]) | Promise<SelectOptions[] | SelectOptionsGroup[]>>;
87
+ default: undefined;
88
+ description: string;
89
+ };
90
+ initOptionsMethodId: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ hidden: boolean;
94
+ description: string;
95
+ };
85
96
  searchMethodId: {
86
97
  type: StringConstructor;
87
98
  default: string;
@@ -113,4 +124,9 @@ export declare const selectProps: {
113
124
  default: boolean;
114
125
  description: string;
115
126
  };
127
+ enableSearchCache: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ description: string;
131
+ };
116
132
  };
@@ -4,5 +4,5 @@ import { SelectMultipleOptions, SelectMultipleOptionsGroup } from '../../select-
4
4
  type Options = SelectOptions | SelectMultipleOptions;
5
5
  type OptionsGroup = SelectOptionsGroup | SelectMultipleOptionsGroup;
6
6
  export declare const flattenOptions: (options: (Options | OptionsGroup)[]) => Options[];
7
- export declare const defaultSearchMethod: (params: any) => Options[];
7
+ export declare const defaultSearchMethod: (params: any) => any;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { SelectMultipleOptions } from './props';
1
+ import { SelectMultipleOptions, SelectMultipleOptionsGroup } from './props';
2
2
 
3
3
  declare function __VLS_template(): {
4
4
  header?(_: {}): any;
@@ -66,6 +66,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
66
66
  default: undefined;
67
67
  description: string;
68
68
  };
69
+ initOptionsMethod: {
70
+ type: PropType<() => (SelectMultipleOptions[] | SelectMultipleOptionsGroup[]) | Promise<SelectMultipleOptions[] | SelectMultipleOptionsGroup[]>>;
71
+ default: undefined;
72
+ description: string;
73
+ };
74
+ initOptionsMethodId: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ hidden: boolean;
78
+ description: string;
79
+ };
69
80
  searchMethodId: {
70
81
  type: StringConstructor;
71
82
  default: string;
@@ -82,6 +93,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
82
93
  default: boolean;
83
94
  description: string;
84
95
  };
96
+ enableSearchCache: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
85
100
  readonly: {
86
101
  type: BooleanConstructor;
87
102
  default: boolean;
@@ -105,6 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
105
120
  }>, {
106
121
  show: () => void;
107
122
  hide: () => void;
123
+ clearSearchCache: () => void;
108
124
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
109
125
  blur: (...args: any[]) => void;
110
126
  change: (...args: any[]) => void;
@@ -169,6 +185,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
169
185
  default: undefined;
170
186
  description: string;
171
187
  };
188
+ initOptionsMethod: {
189
+ type: PropType<() => (SelectMultipleOptions[] | SelectMultipleOptionsGroup[]) | Promise<SelectMultipleOptions[] | SelectMultipleOptionsGroup[]>>;
190
+ default: undefined;
191
+ description: string;
192
+ };
193
+ initOptionsMethodId: {
194
+ type: StringConstructor;
195
+ default: string;
196
+ hidden: boolean;
197
+ description: string;
198
+ };
172
199
  searchMethodId: {
173
200
  type: StringConstructor;
174
201
  default: string;
@@ -185,6 +212,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
185
212
  default: boolean;
186
213
  description: string;
187
214
  };
215
+ enableSearchCache: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
188
219
  readonly: {
189
220
  type: BooleanConstructor;
190
221
  default: boolean;
@@ -223,9 +254,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
223
254
  itemHeight: number;
224
255
  searchable: boolean;
225
256
  searchMethod: (params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
257
+ initOptionsMethod: () => (SelectMultipleOptions[] | SelectMultipleOptionsGroup[]) | Promise<SelectMultipleOptions[] | SelectMultipleOptionsGroup[]>;
258
+ initOptionsMethodId: string;
226
259
  searchMethodId: string;
227
260
  searchDelay: number;
228
261
  showCheckIcon: boolean;
262
+ enableSearchCache: boolean;
229
263
  valueLayout: "tag" | "text";
230
264
  valueTextSplit: string;
231
265
  searchPlaceholder: string;
@@ -81,6 +81,17 @@ export declare const selectMultipleProps: {
81
81
  default: undefined;
82
82
  description: string;
83
83
  };
84
+ initOptionsMethod: {
85
+ type: PropType<() => (SelectMultipleOptions[] | SelectMultipleOptionsGroup[]) | Promise<SelectMultipleOptions[] | SelectMultipleOptionsGroup[]>>;
86
+ default: undefined;
87
+ description: string;
88
+ };
89
+ initOptionsMethodId: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ hidden: boolean;
93
+ description: string;
94
+ };
84
95
  searchMethodId: {
85
96
  type: StringConstructor;
86
97
  default: string;
@@ -97,6 +108,10 @@ export declare const selectMultipleProps: {
97
108
  default: boolean;
98
109
  description: string;
99
110
  };
111
+ enableSearchCache: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
100
115
  readonly: {
101
116
  type: BooleanConstructor;
102
117
  default: boolean;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
2
+ modelValue: import('vue').PropType<number>;
3
3
  size: {
4
4
  type: PropType<import('../../..').LewSize>;
5
5
  default: string;
@@ -48,9 +48,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
48
48
  description: string;
49
49
  };
50
50
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
- change: (...args: any[]) => void;
51
+ change: (value: number) => void;
52
52
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
53
- modelValue: import('vue').PropType<any>;
53
+ modelValue: import('vue').PropType<number>;
54
54
  size: {
55
55
  type: PropType<import('../../..').LewSize>;
56
56
  default: string;
@@ -99,7 +99,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
99
99
  description: string;
100
100
  };
101
101
  }>> & Readonly<{
102
- onChange?: ((...args: any[]) => any) | undefined;
102
+ onChange?: ((value: number) => any) | undefined;
103
103
  }>, {
104
104
  size: import('../../..').LewSize;
105
105
  max: string | number;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
2
+ modelValue: import('vue').PropType<number[]>;
3
3
  size: {
4
4
  type: PropType<import('../../..').LewSize>;
5
5
  default: string;
@@ -47,8 +47,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
47
47
  default: (value: number) => string;
48
48
  description: string;
49
49
  };
50
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
51
- modelValue: import('vue').PropType<any>;
50
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ change: (...args: any[]) => void;
52
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
53
+ modelValue: import('vue').PropType<number[]>;
52
54
  size: {
53
55
  type: PropType<import('../../..').LewSize>;
54
56
  default: string;
@@ -96,7 +98,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
96
98
  default: (value: number) => string;
97
99
  description: string;
98
100
  };
99
- }>> & Readonly<{}>, {
101
+ }>> & Readonly<{
102
+ onChange?: ((...args: any[]) => any) | undefined;
103
+ }>, {
100
104
  size: import('../../..').LewSize;
101
105
  max: string | number;
102
106
  min: string | number;
@@ -1,4 +1,4 @@
1
- export declare const getDisplayText: ({ text, reserveEnd, target }: {
1
+ export declare const getDisplayText: ({ text, reserveEnd, target, }: {
2
2
  text: string;
3
3
  reserveEnd: number;
4
4
  target: HTMLElement;
@@ -62,7 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
62
62
  default: string;
63
63
  description: string;
64
64
  };
65
- initTree: {
65
+ initOptionsMethod: {
66
66
  type: PropType<() => void>;
67
67
  default: undefined;
68
68
  description: string;
@@ -146,7 +146,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
146
146
  default: string;
147
147
  description: string;
148
148
  };
149
- initTree: {
149
+ initOptionsMethod: {
150
150
  type: PropType<() => void>;
151
151
  default: undefined;
152
152
  description: string;
@@ -171,15 +171,15 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
171
171
  height: string;
172
172
  checkable: boolean;
173
173
  searchable: boolean;
174
+ initOptionsMethod: () => void;
174
175
  multiple: boolean;
175
176
  free: boolean;
176
177
  loadMethod: (item: TreeDataSource) => void;
177
178
  dataSource: TreeDataSource[];
179
+ showLine: boolean;
180
+ expandAll: boolean;
178
181
  keyField: string;
179
182
  labelField: string;
180
- initTree: () => void;
181
- expandAll: boolean;
182
- showLine: boolean;
183
183
  disabledField: string;
184
184
  isSelect: boolean;
185
185
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -87,7 +87,7 @@ export declare const treeProps: {
87
87
  default: string;
88
88
  description: string;
89
89
  };
90
- initTree: {
90
+ initOptionsMethod: {
91
91
  type: PropType<() => void>;
92
92
  default: undefined;
93
93
  description: string;
@@ -5,7 +5,7 @@ import { TreeDataSource } from './props';
5
5
  * @param options 格式化选项
6
6
  * @returns 格式化后的树结构
7
7
  */
8
- export declare const formatTree: ({ dataSource, parent, parentKeyPaths, parentLabelPaths, keyField, labelField, free }: {
8
+ export declare const formatTree: ({ dataSource, parent, parentKeyPaths, parentLabelPaths, keyField, labelField, free, }: {
9
9
  dataSource: TreeDataSource[];
10
10
  parent?: any;
11
11
  parentKeyPaths?: String[];
@@ -19,8 +19,8 @@ export declare const formatTree: ({ dataSource, parent, parentKeyPaths, parentLa
19
19
  * @param options 转换选项
20
20
  * @returns 处理结果,包含状态和数据
21
21
  */
22
- declare const transformTree: ({ initTree, dataSource, keyField, labelField, free, keyword }: {
23
- initTree?: any;
22
+ declare const transformTree: ({ initOptionsMethod, dataSource, keyField, labelField, free, keyword, }: {
23
+ initOptionsMethod?: any;
24
24
  dataSource?: TreeDataSource[];
25
25
  keyField?: string;
26
26
  labelField?: string;