lew-ui 2.7.1 → 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.
@@ -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;
@@ -14,6 +14,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
14
14
  description: string;
15
15
  validator: (value: import('../../..').TreeDataSource[]) => boolean;
16
16
  };
17
+ width: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: string;
20
+ description: string;
21
+ };
17
22
  defaultValue: {
18
23
  type: (StringConstructor | NumberConstructor)[];
19
24
  default: string;
@@ -21,7 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
21
26
  };
22
27
  placeholder: {
23
28
  type: StringConstructor;
24
- default: string;
29
+ defaultLocale: boolean;
25
30
  description: string;
26
31
  };
27
32
  size: {
@@ -113,11 +118,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
113
118
  default: string;
114
119
  description: string;
115
120
  };
116
- initTree: {
121
+ initOptionsMethod: {
117
122
  type: PropType<() => void>;
118
123
  default: undefined;
119
124
  description: string;
120
125
  };
126
+ initOptionsMethodId: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ hidden: boolean;
130
+ description: string;
131
+ };
121
132
  loadMethod: {
122
133
  type: PropType<() => void>;
123
134
  default: undefined;
@@ -138,6 +149,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
138
149
  description: string;
139
150
  validator: (value: import('../../..').TreeDataSource[]) => boolean;
140
151
  };
152
+ width: {
153
+ type: (StringConstructor | NumberConstructor)[];
154
+ default: string;
155
+ description: string;
156
+ };
141
157
  defaultValue: {
142
158
  type: (StringConstructor | NumberConstructor)[];
143
159
  default: string;
@@ -145,7 +161,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
145
161
  };
146
162
  placeholder: {
147
163
  type: StringConstructor;
148
- default: string;
164
+ defaultLocale: boolean;
149
165
  description: string;
150
166
  };
151
167
  size: {
@@ -237,11 +253,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
237
253
  default: string;
238
254
  description: string;
239
255
  };
240
- initTree: {
256
+ initOptionsMethod: {
241
257
  type: PropType<() => void>;
242
258
  default: undefined;
243
259
  description: string;
244
260
  };
261
+ initOptionsMethodId: {
262
+ type: StringConstructor;
263
+ default: string;
264
+ hidden: boolean;
265
+ description: string;
266
+ };
245
267
  loadMethod: {
246
268
  type: PropType<() => void>;
247
269
  default: undefined;
@@ -253,26 +275,27 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
253
275
  onClear?: ((...args: any[]) => any) | undefined;
254
276
  }>, {
255
277
  size: import('../../..').LewSize;
278
+ width: string | number;
256
279
  disabled: boolean;
257
280
  trigger: import('../../..').TreeSelectTriggerType;
258
281
  checkable: boolean;
259
282
  readonly: boolean;
260
- placeholder: string;
261
283
  clearable: boolean;
262
284
  align: import('../../..').TreeSelectAlign;
263
285
  defaultValue: string | number;
264
286
  searchable: boolean;
287
+ initOptionsMethod: () => void;
288
+ initOptionsMethodId: string;
265
289
  searchDelay: number;
266
290
  showCheckIcon: boolean;
267
291
  showAllLevels: boolean;
268
292
  free: boolean;
269
293
  loadMethod: () => void;
270
294
  dataSource: import('../../..').TreeDataSource[];
295
+ showLine: boolean;
296
+ expandAll: boolean;
271
297
  keyField: string;
272
298
  labelField: string;
273
- initTree: () => void;
274
- expandAll: boolean;
275
- showLine: boolean;
276
299
  disabledField: string;
277
300
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
278
301
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -36,6 +36,11 @@ export declare const treeSelectProps: {
36
36
  description: string;
37
37
  validator: (value: TreeDataSource[]) => boolean;
38
38
  };
39
+ width: {
40
+ type: (StringConstructor | NumberConstructor)[];
41
+ default: string;
42
+ description: string;
43
+ };
39
44
  defaultValue: {
40
45
  type: (StringConstructor | NumberConstructor)[];
41
46
  default: string;
@@ -43,7 +48,7 @@ export declare const treeSelectProps: {
43
48
  };
44
49
  placeholder: {
45
50
  type: StringConstructor;
46
- default: string;
51
+ defaultLocale: boolean;
47
52
  description: string;
48
53
  };
49
54
  size: {
@@ -135,11 +140,17 @@ export declare const treeSelectProps: {
135
140
  default: string;
136
141
  description: string;
137
142
  };
138
- initTree: {
143
+ initOptionsMethod: {
139
144
  type: PropType<() => void>;
140
145
  default: undefined;
141
146
  description: string;
142
147
  };
148
+ initOptionsMethodId: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ hidden: boolean;
152
+ description: string;
153
+ };
143
154
  loadMethod: {
144
155
  type: PropType<() => void>;
145
156
  default: undefined;