@dao-style/core 1.13.1-beta.2 → 1.13.1-beta.4
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.
- package/dist/components/action-icon/action-icon.d.ts +178 -13
- package/dist/components/action-icon/action-icon.vue.d.ts +74 -6
- package/dist/components/action-icon/props.d.ts +22 -2
- package/dist/components/button/button.d.ts +178 -13
- package/dist/components/button/button.vue.d.ts +74 -6
- package/dist/components/button/props.d.ts +22 -2
- package/dist/components/dropdown/dropdown-item.d.ts +178 -13
- package/dist/components/dropdown/dropdown-item.vue.d.ts +74 -6
- package/dist/components/dropdown/props.d.ts +22 -2
- package/dist/components/select/props.d.ts +11 -1
- package/dist/components/select/select.d.ts +49 -4
- package/dist/components/select/select.vue.d.ts +21 -1
- package/dist/components/table/column-setting.vue.d.ts +178 -13
- package/dist/components/tooltip/tooltip-props.d.ts +2 -0
- package/dist/components/virtual-select/props.d.ts +11 -1
- package/dist/components/virtual-select/virtual-select.d.ts +49 -4
- package/dist/components/virtual-select/virtual-select.vue.d.ts +21 -1
- package/dist/dao-style.js +7 -7
- package/dist/dao-style.mjs +5380 -5248
- package/dist/utils/types.d.ts +20 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ declare const DaoDropdownItem: {
|
|
|
10
10
|
color: import("./props").DropdownItemColor;
|
|
11
11
|
tooltipContent: string;
|
|
12
12
|
tooltipDisabled: boolean;
|
|
13
|
-
tooltipOption: {
|
|
13
|
+
tooltipOption: Partial<{
|
|
14
14
|
modelValue: boolean;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
offset: string | number;
|
|
@@ -25,7 +25,13 @@ declare const DaoDropdownItem: {
|
|
|
25
25
|
popperClass: string;
|
|
26
26
|
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
27
27
|
transition: string;
|
|
28
|
-
}
|
|
28
|
+
} & {} & {
|
|
29
|
+
onHide: () => void;
|
|
30
|
+
onShow: () => void;
|
|
31
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
32
|
+
onAfterShow: () => void;
|
|
33
|
+
onAfterHide: () => void;
|
|
34
|
+
}>;
|
|
29
35
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
30
36
|
type: {
|
|
31
37
|
type: import("vue").PropType<import("./props").DropdownItemType>;
|
|
@@ -50,7 +56,28 @@ declare const DaoDropdownItem: {
|
|
|
50
56
|
default: boolean;
|
|
51
57
|
};
|
|
52
58
|
tooltipOption: {
|
|
53
|
-
type: import("vue").PropType<
|
|
59
|
+
type: import("vue").PropType<Partial<{
|
|
60
|
+
modelValue: boolean;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
offset: string | number;
|
|
63
|
+
placement: import("@popperjs/core").Placement;
|
|
64
|
+
content: string;
|
|
65
|
+
appendTo: string | false | HTMLElement;
|
|
66
|
+
boundary: import("@popperjs/core").Boundary;
|
|
67
|
+
delay: import("..").DelayProp;
|
|
68
|
+
width: string | number;
|
|
69
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
70
|
+
visibleArrow: boolean;
|
|
71
|
+
popperClass: string;
|
|
72
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
73
|
+
transition: string;
|
|
74
|
+
} & {} & {
|
|
75
|
+
onHide: () => void;
|
|
76
|
+
onShow: () => void;
|
|
77
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
78
|
+
onAfterShow: () => void;
|
|
79
|
+
onAfterHide: () => void;
|
|
80
|
+
}>>;
|
|
54
81
|
default: () => {};
|
|
55
82
|
};
|
|
56
83
|
}>> & {
|
|
@@ -93,7 +120,28 @@ declare const DaoDropdownItem: {
|
|
|
93
120
|
default: boolean;
|
|
94
121
|
};
|
|
95
122
|
tooltipOption: {
|
|
96
|
-
type: import("vue").PropType<
|
|
123
|
+
type: import("vue").PropType<Partial<{
|
|
124
|
+
modelValue: boolean;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
offset: string | number;
|
|
127
|
+
placement: import("@popperjs/core").Placement;
|
|
128
|
+
content: string;
|
|
129
|
+
appendTo: string | false | HTMLElement;
|
|
130
|
+
boundary: import("@popperjs/core").Boundary;
|
|
131
|
+
delay: import("..").DelayProp;
|
|
132
|
+
width: string | number;
|
|
133
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
134
|
+
visibleArrow: boolean;
|
|
135
|
+
popperClass: string;
|
|
136
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
137
|
+
transition: string;
|
|
138
|
+
} & {} & {
|
|
139
|
+
onHide: () => void;
|
|
140
|
+
onShow: () => void;
|
|
141
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
142
|
+
onAfterShow: () => void;
|
|
143
|
+
onAfterHide: () => void;
|
|
144
|
+
}>>;
|
|
97
145
|
default: () => {};
|
|
98
146
|
};
|
|
99
147
|
}>> & {
|
|
@@ -103,14 +151,35 @@ declare const DaoDropdownItem: {
|
|
|
103
151
|
itemAttrs: import("vue").ComputedRef<{
|
|
104
152
|
onClick(event: Event): void;
|
|
105
153
|
}>;
|
|
106
|
-
actualTooltipOption: import("vue").ComputedRef<
|
|
154
|
+
actualTooltipOption: import("vue").ComputedRef<Partial<{
|
|
155
|
+
modelValue: boolean;
|
|
156
|
+
disabled: boolean;
|
|
157
|
+
offset: string | number;
|
|
158
|
+
placement: import("@popperjs/core").Placement;
|
|
159
|
+
content: string;
|
|
160
|
+
appendTo: string | false | HTMLElement;
|
|
161
|
+
boundary: import("@popperjs/core").Boundary;
|
|
162
|
+
delay: import("..").DelayProp;
|
|
163
|
+
width: string | number;
|
|
164
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
165
|
+
visibleArrow: boolean;
|
|
166
|
+
popperClass: string;
|
|
167
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
168
|
+
transition: string;
|
|
169
|
+
} & {} & {
|
|
170
|
+
onHide: () => void;
|
|
171
|
+
onShow: () => void;
|
|
172
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
173
|
+
onAfterShow: () => void;
|
|
174
|
+
onAfterHide: () => void;
|
|
175
|
+
}>>;
|
|
107
176
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, {
|
|
108
177
|
type: import("./props").DropdownItemType;
|
|
109
178
|
disabled: boolean;
|
|
110
179
|
color: import("./props").DropdownItemColor;
|
|
111
180
|
tooltipContent: string;
|
|
112
181
|
tooltipDisabled: boolean;
|
|
113
|
-
tooltipOption: {
|
|
182
|
+
tooltipOption: Partial<{
|
|
114
183
|
modelValue: boolean;
|
|
115
184
|
disabled: boolean;
|
|
116
185
|
offset: string | number;
|
|
@@ -125,7 +194,13 @@ declare const DaoDropdownItem: {
|
|
|
125
194
|
popperClass: string;
|
|
126
195
|
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
127
196
|
transition: string;
|
|
128
|
-
}
|
|
197
|
+
} & {} & {
|
|
198
|
+
onHide: () => void;
|
|
199
|
+
onShow: () => void;
|
|
200
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
201
|
+
onAfterShow: () => void;
|
|
202
|
+
onAfterHide: () => void;
|
|
203
|
+
}>;
|
|
129
204
|
}, {}, string> & {
|
|
130
205
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
131
206
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -170,7 +245,28 @@ declare const DaoDropdownItem: {
|
|
|
170
245
|
default: boolean;
|
|
171
246
|
};
|
|
172
247
|
tooltipOption: {
|
|
173
|
-
type: import("vue").PropType<
|
|
248
|
+
type: import("vue").PropType<Partial<{
|
|
249
|
+
modelValue: boolean;
|
|
250
|
+
disabled: boolean;
|
|
251
|
+
offset: string | number;
|
|
252
|
+
placement: import("@popperjs/core").Placement;
|
|
253
|
+
content: string;
|
|
254
|
+
appendTo: string | false | HTMLElement;
|
|
255
|
+
boundary: import("@popperjs/core").Boundary;
|
|
256
|
+
delay: import("..").DelayProp;
|
|
257
|
+
width: string | number;
|
|
258
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
259
|
+
visibleArrow: boolean;
|
|
260
|
+
popperClass: string;
|
|
261
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
262
|
+
transition: string;
|
|
263
|
+
} & {} & {
|
|
264
|
+
onHide: () => void;
|
|
265
|
+
onShow: () => void;
|
|
266
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
267
|
+
onAfterShow: () => void;
|
|
268
|
+
onAfterHide: () => void;
|
|
269
|
+
}>>;
|
|
174
270
|
default: () => {};
|
|
175
271
|
};
|
|
176
272
|
}>> & {
|
|
@@ -180,7 +276,28 @@ declare const DaoDropdownItem: {
|
|
|
180
276
|
itemAttrs: import("vue").ComputedRef<{
|
|
181
277
|
onClick(event: Event): void;
|
|
182
278
|
}>;
|
|
183
|
-
actualTooltipOption: import("vue").ComputedRef<
|
|
279
|
+
actualTooltipOption: import("vue").ComputedRef<Partial<{
|
|
280
|
+
modelValue: boolean;
|
|
281
|
+
disabled: boolean;
|
|
282
|
+
offset: string | number;
|
|
283
|
+
placement: import("@popperjs/core").Placement;
|
|
284
|
+
content: string;
|
|
285
|
+
appendTo: string | false | HTMLElement;
|
|
286
|
+
boundary: import("@popperjs/core").Boundary;
|
|
287
|
+
delay: import("..").DelayProp;
|
|
288
|
+
width: string | number;
|
|
289
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
290
|
+
visibleArrow: boolean;
|
|
291
|
+
popperClass: string;
|
|
292
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
293
|
+
transition: string;
|
|
294
|
+
} & {} & {
|
|
295
|
+
onHide: () => void;
|
|
296
|
+
onShow: () => void;
|
|
297
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
298
|
+
onAfterShow: () => void;
|
|
299
|
+
onAfterHide: () => void;
|
|
300
|
+
}>>;
|
|
184
301
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
185
302
|
__isFragment?: undefined;
|
|
186
303
|
__isTeleport?: undefined;
|
|
@@ -209,7 +326,28 @@ declare const DaoDropdownItem: {
|
|
|
209
326
|
default: boolean;
|
|
210
327
|
};
|
|
211
328
|
tooltipOption: {
|
|
212
|
-
type: import("vue").PropType<
|
|
329
|
+
type: import("vue").PropType<Partial<{
|
|
330
|
+
modelValue: boolean;
|
|
331
|
+
disabled: boolean;
|
|
332
|
+
offset: string | number;
|
|
333
|
+
placement: import("@popperjs/core").Placement;
|
|
334
|
+
content: string;
|
|
335
|
+
appendTo: string | false | HTMLElement;
|
|
336
|
+
boundary: import("@popperjs/core").Boundary;
|
|
337
|
+
delay: import("..").DelayProp;
|
|
338
|
+
width: string | number;
|
|
339
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
340
|
+
visibleArrow: boolean;
|
|
341
|
+
popperClass: string;
|
|
342
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
343
|
+
transition: string;
|
|
344
|
+
} & {} & {
|
|
345
|
+
onHide: () => void;
|
|
346
|
+
onShow: () => void;
|
|
347
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
348
|
+
onAfterShow: () => void;
|
|
349
|
+
onAfterHide: () => void;
|
|
350
|
+
}>>;
|
|
213
351
|
default: () => {};
|
|
214
352
|
};
|
|
215
353
|
}>> & {
|
|
@@ -219,14 +357,35 @@ declare const DaoDropdownItem: {
|
|
|
219
357
|
itemAttrs: import("vue").ComputedRef<{
|
|
220
358
|
onClick(event: Event): void;
|
|
221
359
|
}>;
|
|
222
|
-
actualTooltipOption: import("vue").ComputedRef<
|
|
360
|
+
actualTooltipOption: import("vue").ComputedRef<Partial<{
|
|
361
|
+
modelValue: boolean;
|
|
362
|
+
disabled: boolean;
|
|
363
|
+
offset: string | number;
|
|
364
|
+
placement: import("@popperjs/core").Placement;
|
|
365
|
+
content: string;
|
|
366
|
+
appendTo: string | false | HTMLElement;
|
|
367
|
+
boundary: import("@popperjs/core").Boundary;
|
|
368
|
+
delay: import("..").DelayProp;
|
|
369
|
+
width: string | number;
|
|
370
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
371
|
+
visibleArrow: boolean;
|
|
372
|
+
popperClass: string;
|
|
373
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
374
|
+
transition: string;
|
|
375
|
+
} & {} & {
|
|
376
|
+
onHide: () => void;
|
|
377
|
+
onShow: () => void;
|
|
378
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
379
|
+
onAfterShow: () => void;
|
|
380
|
+
onAfterHide: () => void;
|
|
381
|
+
}>>;
|
|
223
382
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {
|
|
224
383
|
type: import("./props").DropdownItemType;
|
|
225
384
|
disabled: boolean;
|
|
226
385
|
color: import("./props").DropdownItemColor;
|
|
227
386
|
tooltipContent: string;
|
|
228
387
|
tooltipDisabled: boolean;
|
|
229
|
-
tooltipOption: {
|
|
388
|
+
tooltipOption: Partial<{
|
|
230
389
|
modelValue: boolean;
|
|
231
390
|
disabled: boolean;
|
|
232
391
|
offset: string | number;
|
|
@@ -241,7 +400,13 @@ declare const DaoDropdownItem: {
|
|
|
241
400
|
popperClass: string;
|
|
242
401
|
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
243
402
|
transition: string;
|
|
244
|
-
}
|
|
403
|
+
} & {} & {
|
|
404
|
+
onHide: () => void;
|
|
405
|
+
onShow: () => void;
|
|
406
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
407
|
+
onAfterShow: () => void;
|
|
408
|
+
onAfterHide: () => void;
|
|
409
|
+
}>;
|
|
245
410
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
246
411
|
$props: Partial<DropdownItemProps>;
|
|
247
412
|
$slots: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type TooltipProps } from '../tooltip';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
type: {
|
|
4
3
|
type: import("vue").PropType<import("./props").DropdownItemType>;
|
|
@@ -23,7 +22,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
22
|
default: boolean;
|
|
24
23
|
};
|
|
25
24
|
tooltipOption: {
|
|
26
|
-
type: import("vue").PropType<
|
|
25
|
+
type: import("vue").PropType<Partial<{
|
|
26
|
+
modelValue: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
offset: string | number;
|
|
29
|
+
placement: import("@popperjs/core").Placement;
|
|
30
|
+
content: string;
|
|
31
|
+
appendTo: string | false | HTMLElement;
|
|
32
|
+
boundary: import("@popperjs/core").Boundary;
|
|
33
|
+
delay: import("..").DelayProp;
|
|
34
|
+
width: string | number;
|
|
35
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
36
|
+
visibleArrow: boolean;
|
|
37
|
+
popperClass: string;
|
|
38
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
39
|
+
transition: string;
|
|
40
|
+
} & {} & {
|
|
41
|
+
onHide: () => void;
|
|
42
|
+
onShow: () => void;
|
|
43
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
44
|
+
onAfterShow: () => void;
|
|
45
|
+
onAfterHide: () => void;
|
|
46
|
+
}>>;
|
|
27
47
|
default: () => {};
|
|
28
48
|
};
|
|
29
49
|
}, {
|
|
@@ -31,7 +51,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
51
|
itemAttrs: import("vue").ComputedRef<{
|
|
32
52
|
onClick(event: Event): void;
|
|
33
53
|
}>;
|
|
34
|
-
actualTooltipOption: import("vue").ComputedRef<
|
|
54
|
+
actualTooltipOption: import("vue").ComputedRef<Partial<{
|
|
55
|
+
modelValue: boolean;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
offset: string | number;
|
|
58
|
+
placement: import("@popperjs/core").Placement;
|
|
59
|
+
content: string;
|
|
60
|
+
appendTo: string | false | HTMLElement;
|
|
61
|
+
boundary: import("@popperjs/core").Boundary;
|
|
62
|
+
delay: import("..").DelayProp;
|
|
63
|
+
width: string | number;
|
|
64
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
65
|
+
visibleArrow: boolean;
|
|
66
|
+
popperClass: string;
|
|
67
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
68
|
+
transition: string;
|
|
69
|
+
} & {} & {
|
|
70
|
+
onHide: () => void;
|
|
71
|
+
onShow: () => void;
|
|
72
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
73
|
+
onAfterShow: () => void;
|
|
74
|
+
onAfterHide: () => void;
|
|
75
|
+
}>>;
|
|
35
76
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
77
|
type: {
|
|
37
78
|
type: import("vue").PropType<import("./props").DropdownItemType>;
|
|
@@ -56,7 +97,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
97
|
default: boolean;
|
|
57
98
|
};
|
|
58
99
|
tooltipOption: {
|
|
59
|
-
type: import("vue").PropType<
|
|
100
|
+
type: import("vue").PropType<Partial<{
|
|
101
|
+
modelValue: boolean;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
offset: string | number;
|
|
104
|
+
placement: import("@popperjs/core").Placement;
|
|
105
|
+
content: string;
|
|
106
|
+
appendTo: string | false | HTMLElement;
|
|
107
|
+
boundary: import("@popperjs/core").Boundary;
|
|
108
|
+
delay: import("..").DelayProp;
|
|
109
|
+
width: string | number;
|
|
110
|
+
trigger: "manual" | import("..").PopperTrigger | import("..").PopperTrigger[];
|
|
111
|
+
visibleArrow: boolean;
|
|
112
|
+
popperClass: string;
|
|
113
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
114
|
+
transition: string;
|
|
115
|
+
} & {} & {
|
|
116
|
+
onHide: () => void;
|
|
117
|
+
onShow: () => void;
|
|
118
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
119
|
+
onAfterShow: () => void;
|
|
120
|
+
onAfterHide: () => void;
|
|
121
|
+
}>>;
|
|
60
122
|
default: () => {};
|
|
61
123
|
};
|
|
62
124
|
}>> & {
|
|
@@ -67,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
129
|
color: import("./props").DropdownItemColor;
|
|
68
130
|
tooltipContent: string;
|
|
69
131
|
tooltipDisabled: boolean;
|
|
70
|
-
tooltipOption: {
|
|
132
|
+
tooltipOption: Partial<{
|
|
71
133
|
modelValue: boolean;
|
|
72
134
|
disabled: boolean;
|
|
73
135
|
offset: string | number;
|
|
@@ -82,6 +144,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
144
|
popperClass: string;
|
|
83
145
|
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("..").DaoModifiers>>;
|
|
84
146
|
transition: string;
|
|
85
|
-
}
|
|
147
|
+
} & {} & {
|
|
148
|
+
onHide: () => void;
|
|
149
|
+
onShow: () => void;
|
|
150
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
151
|
+
onAfterShow: () => void;
|
|
152
|
+
onAfterHide: () => void;
|
|
153
|
+
}>;
|
|
86
154
|
}>;
|
|
87
155
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Placement } from '@popperjs/core';
|
|
2
2
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { PopperTrigger } from '../popper/popper-props';
|
|
4
|
-
import { type TooltipProps } from '../tooltip';
|
|
5
4
|
export declare const dropdownProps: {
|
|
6
5
|
trigger: {
|
|
7
6
|
type: PropType<"manual" | PopperTrigger | PopperTrigger[]>;
|
|
@@ -56,7 +55,28 @@ export declare const dropdownItemProps: {
|
|
|
56
55
|
default: boolean;
|
|
57
56
|
};
|
|
58
57
|
tooltipOption: {
|
|
59
|
-
type: PropType<
|
|
58
|
+
type: PropType<Partial<{
|
|
59
|
+
modelValue: boolean;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
offset: string | number;
|
|
62
|
+
placement: Placement;
|
|
63
|
+
content: string;
|
|
64
|
+
appendTo: string | false | HTMLElement;
|
|
65
|
+
boundary: import("@popperjs/core").Boundary;
|
|
66
|
+
delay: import("../popper/popper-props").DelayProp;
|
|
67
|
+
width: string | number;
|
|
68
|
+
trigger: "manual" | PopperTrigger | PopperTrigger[];
|
|
69
|
+
visibleArrow: boolean;
|
|
70
|
+
popperClass: string;
|
|
71
|
+
popperOptions: Partial<import("@popperjs/core").OptionsGeneric<import("../popper/popper-props").DaoModifiers>>;
|
|
72
|
+
transition: string;
|
|
73
|
+
} & {} & {
|
|
74
|
+
onHide: () => void;
|
|
75
|
+
onShow: () => void;
|
|
76
|
+
"onUpdate:modelValue": (isOpen: boolean) => void;
|
|
77
|
+
onAfterShow: () => void;
|
|
78
|
+
onAfterHide: () => void;
|
|
79
|
+
}>>;
|
|
60
80
|
default: () => {};
|
|
61
81
|
};
|
|
62
82
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, UnwrapNestedRefs } from 'vue';
|
|
2
|
+
import { UseInfiniteScrollOptions, useScroll } from '@vueuse/core';
|
|
2
3
|
import { DaoSelectSearchFn, OptionValue } from './types';
|
|
3
4
|
import { ValidateStatus } from '../../utils/constant';
|
|
4
5
|
export declare const selectProps: {
|
|
@@ -64,6 +65,14 @@ export declare const selectProps: {
|
|
|
64
65
|
type: BooleanConstructor;
|
|
65
66
|
default: boolean;
|
|
66
67
|
};
|
|
68
|
+
enableLazyLoad: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
lazyLoadOptions: {
|
|
73
|
+
type: PropType<UseInfiniteScrollOptions>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
67
76
|
};
|
|
68
77
|
export type SelectProps = ExtractPropTypes<typeof selectProps>;
|
|
69
78
|
export declare const optionProps: {
|
|
@@ -87,5 +96,6 @@ export declare const selectEmits: {
|
|
|
87
96
|
'search-change': (search: string) => void;
|
|
88
97
|
close: () => void;
|
|
89
98
|
open: () => void;
|
|
99
|
+
'load-more': (state: UnwrapNestedRefs<ReturnType<typeof useScroll>>) => void;
|
|
90
100
|
};
|
|
91
101
|
export type SelectEmits = typeof selectEmits;
|
|
@@ -21,6 +21,8 @@ declare const DaoSelect: {
|
|
|
21
21
|
menuClass: string;
|
|
22
22
|
optionLoading: boolean;
|
|
23
23
|
hideSelectAll: boolean;
|
|
24
|
+
enableLazyLoad: boolean;
|
|
25
|
+
lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
|
|
24
26
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
25
27
|
modelValue: {
|
|
26
28
|
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
@@ -84,13 +86,22 @@ declare const DaoSelect: {
|
|
|
84
86
|
type: BooleanConstructor;
|
|
85
87
|
default: boolean;
|
|
86
88
|
};
|
|
89
|
+
enableLazyLoad: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
lazyLoadOptions: {
|
|
94
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
87
97
|
}>> & {
|
|
88
98
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
89
99
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
90
100
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
91
101
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
92
102
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
|
|
103
|
+
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "modelValue" | "disabled" | "appendTo" | "size" | "multiple" | "loading" | "status" | "clearable" | "placeholder" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll" | "enableLazyLoad" | "lazyLoadOptions">;
|
|
94
105
|
$attrs: {
|
|
95
106
|
[x: string]: unknown;
|
|
96
107
|
};
|
|
@@ -102,7 +113,7 @@ declare const DaoSelect: {
|
|
|
102
113
|
}>;
|
|
103
114
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
104
115
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
105
|
-
$emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change", ...args: any[]) => void;
|
|
116
|
+
$emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", ...args: any[]) => void;
|
|
106
117
|
$el: any;
|
|
107
118
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
108
119
|
modelValue: {
|
|
@@ -167,12 +178,21 @@ declare const DaoSelect: {
|
|
|
167
178
|
type: BooleanConstructor;
|
|
168
179
|
default: boolean;
|
|
169
180
|
};
|
|
181
|
+
enableLazyLoad: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
lazyLoadOptions: {
|
|
186
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
187
|
+
default: undefined;
|
|
188
|
+
};
|
|
170
189
|
}>> & {
|
|
171
190
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
172
191
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
173
192
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
174
193
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
175
194
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
176
196
|
}, {
|
|
177
197
|
t: import("vue-i18n").ComposerTranslation<{
|
|
178
198
|
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
@@ -613,7 +633,8 @@ declare const DaoSelect: {
|
|
|
613
633
|
handleCheckAll: (checked: boolean) => void;
|
|
614
634
|
resetCurrentVal: () => void;
|
|
615
635
|
handleUpdateOptions: (data: OptionValue[]) => void;
|
|
616
|
-
|
|
636
|
+
optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
|
|
637
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], string, {
|
|
617
638
|
search: boolean | import("./types").DaoSelectSearchFn;
|
|
618
639
|
modelValue: string | number | boolean | unknown[];
|
|
619
640
|
disabled: boolean;
|
|
@@ -629,6 +650,8 @@ declare const DaoSelect: {
|
|
|
629
650
|
menuClass: string;
|
|
630
651
|
optionLoading: boolean;
|
|
631
652
|
hideSelectAll: boolean;
|
|
653
|
+
enableLazyLoad: boolean;
|
|
654
|
+
lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
|
|
632
655
|
}, {}, string> & {
|
|
633
656
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
634
657
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -712,12 +735,21 @@ declare const DaoSelect: {
|
|
|
712
735
|
type: BooleanConstructor;
|
|
713
736
|
default: boolean;
|
|
714
737
|
};
|
|
738
|
+
enableLazyLoad: {
|
|
739
|
+
type: BooleanConstructor;
|
|
740
|
+
default: boolean;
|
|
741
|
+
};
|
|
742
|
+
lazyLoadOptions: {
|
|
743
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
744
|
+
default: undefined;
|
|
745
|
+
};
|
|
715
746
|
}>> & {
|
|
716
747
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
717
748
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
718
749
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
719
750
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
720
751
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
752
|
+
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
721
753
|
} & import("vue").ShallowUnwrapRef<{
|
|
722
754
|
t: import("vue-i18n").ComposerTranslation<{
|
|
723
755
|
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
@@ -1158,6 +1190,7 @@ declare const DaoSelect: {
|
|
|
1158
1190
|
handleCheckAll: (checked: boolean) => void;
|
|
1159
1191
|
resetCurrentVal: () => void;
|
|
1160
1192
|
handleUpdateOptions: (data: OptionValue[]) => void;
|
|
1193
|
+
optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
|
|
1161
1194
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
1162
1195
|
__isFragment?: undefined;
|
|
1163
1196
|
__isTeleport?: undefined;
|
|
@@ -1225,12 +1258,21 @@ declare const DaoSelect: {
|
|
|
1225
1258
|
type: BooleanConstructor;
|
|
1226
1259
|
default: boolean;
|
|
1227
1260
|
};
|
|
1261
|
+
enableLazyLoad: {
|
|
1262
|
+
type: BooleanConstructor;
|
|
1263
|
+
default: boolean;
|
|
1264
|
+
};
|
|
1265
|
+
lazyLoadOptions: {
|
|
1266
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
1267
|
+
default: undefined;
|
|
1268
|
+
};
|
|
1228
1269
|
}>> & {
|
|
1229
1270
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1230
1271
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1231
1272
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
1232
1273
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
1233
1274
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
1275
|
+
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
1234
1276
|
}, {
|
|
1235
1277
|
t: import("vue-i18n").ComposerTranslation<{
|
|
1236
1278
|
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
@@ -1671,7 +1713,8 @@ declare const DaoSelect: {
|
|
|
1671
1713
|
handleCheckAll: (checked: boolean) => void;
|
|
1672
1714
|
resetCurrentVal: () => void;
|
|
1673
1715
|
handleUpdateOptions: (data: OptionValue[]) => void;
|
|
1674
|
-
|
|
1716
|
+
optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
|
|
1717
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", {
|
|
1675
1718
|
search: boolean | import("./types").DaoSelectSearchFn;
|
|
1676
1719
|
modelValue: string | number | boolean | unknown[];
|
|
1677
1720
|
disabled: boolean;
|
|
@@ -1687,6 +1730,8 @@ declare const DaoSelect: {
|
|
|
1687
1730
|
menuClass: string;
|
|
1688
1731
|
optionLoading: boolean;
|
|
1689
1732
|
hideSelectAll: boolean;
|
|
1733
|
+
enableLazyLoad: boolean;
|
|
1734
|
+
lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
|
|
1690
1735
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <T_1 extends boolean>({ multiple: T, }: {
|
|
1691
1736
|
multiple: any;
|
|
1692
1737
|
}) => {
|
|
@@ -63,6 +63,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
+
enableLazyLoad: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
lazyLoadOptions: {
|
|
71
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
66
74
|
}, {
|
|
67
75
|
t: import("vue-i18n").ComposerTranslation<{
|
|
68
76
|
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
@@ -503,7 +511,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
503
511
|
handleCheckAll: (checked: boolean) => void;
|
|
504
512
|
resetCurrentVal: () => void;
|
|
505
513
|
handleUpdateOptions: (data: DaoSelectOption['value'][]) => void;
|
|
506
|
-
|
|
514
|
+
optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
|
|
515
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
507
516
|
modelValue: {
|
|
508
517
|
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
509
518
|
default: undefined;
|
|
@@ -566,12 +575,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
566
575
|
type: BooleanConstructor;
|
|
567
576
|
default: boolean;
|
|
568
577
|
};
|
|
578
|
+
enableLazyLoad: {
|
|
579
|
+
type: BooleanConstructor;
|
|
580
|
+
default: boolean;
|
|
581
|
+
};
|
|
582
|
+
lazyLoadOptions: {
|
|
583
|
+
type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
|
|
584
|
+
default: undefined;
|
|
585
|
+
};
|
|
569
586
|
}>> & {
|
|
570
587
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
571
588
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
572
589
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
573
590
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
574
591
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
592
|
+
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
575
593
|
}, {
|
|
576
594
|
search: boolean | import("./types").DaoSelectSearchFn;
|
|
577
595
|
modelValue: string | number | boolean | unknown[];
|
|
@@ -588,5 +606,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
588
606
|
menuClass: string;
|
|
589
607
|
optionLoading: boolean;
|
|
590
608
|
hideSelectAll: boolean;
|
|
609
|
+
enableLazyLoad: boolean;
|
|
610
|
+
lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
|
|
591
611
|
}>;
|
|
592
612
|
export default _default;
|