@vtj/ui 0.12.16 → 0.12.18
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/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +732 -104
- package/types/components/action/hooks.d.ts +122 -19
- package/types/components/action-bar/ActionBar.d.ts +488 -70
- package/types/components/attachment/Attachment.d.ts +743 -434
- package/types/components/data-item/DataItem.d.ts +488 -70
- package/types/components/dialog-form/DialogForm.d.ts +2536 -101
- package/types/components/field/Field.d.ts +224 -86
- package/types/components/form/Form.d.ts +2536 -101
- package/types/components/grid/renderers/components/DateEdit.d.ts +291 -69
- package/types/components/grid/renderers/components/GridEdit.d.ts +191 -65
- package/types/components/grid/renderers/components/PickerEdit.d.ts +367 -117
- package/types/components/grid-editor/GridEditor.d.ts +191 -65
- package/types/components/mask/Mask.d.ts +488 -70
- package/types/components/picker/Picker.d.ts +367 -117
- package/types/components/query-form/QueryForm.d.ts +5070 -199
- package/types/components/tabs/Tabs.d.ts +244 -36
- package/types/version.d.ts +2 -2
@@ -1,8 +1,6 @@
|
|
1
1
|
import { nextTick, DefineComponent, ExtractPropTypes, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Component, ShallowRef, WritableComputedRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, Slot, ComponentPublicInstance, ComponentOptionsBase, VNode, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
2
2
|
import { PickerLoader, PickerColumns, PickerFields, PickerDialogProps, PickerGridProps, PickerOption } from './types';
|
3
|
-
import {
|
4
|
-
import { PopperEffect, Options, Placement, OptionPublicInstance, TooltipInstance, ScrollbarInstance, MessageBoxData } from 'element-plus';
|
5
|
-
import { OptionValue, SelectStates } from 'element-plus/es/components/select/src/type.mjs';
|
3
|
+
import { PopperEffect, SelectOptionProxy, OptionBasic, TooltipInstance, ScrollbarInstance, MessageBoxData } from 'element-plus';
|
6
4
|
import { DebouncedFunc } from 'lodash';
|
7
5
|
import { Props } from './Dialog';
|
8
6
|
import { GridColumns, GridCustomInfo, GridLoader, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent, GridSortableOptions } from '..';
|
@@ -171,26 +169,68 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
171
169
|
selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
172
170
|
ariaLabel: StringConstructor;
|
173
171
|
emptyValues: ArrayConstructor;
|
174
|
-
valueOnClear:
|
172
|
+
valueOnClear: {
|
173
|
+
readonly type: PropType<string | number | boolean | Function>;
|
174
|
+
readonly required: false;
|
175
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
176
|
+
__epPropKey: true;
|
177
|
+
} & {
|
178
|
+
readonly default: undefined;
|
179
|
+
};
|
175
180
|
name: StringConstructor;
|
176
181
|
id: StringConstructor;
|
177
|
-
modelValue:
|
178
|
-
|
182
|
+
modelValue: {
|
183
|
+
readonly type: PropType<(string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[]>;
|
184
|
+
readonly required: false;
|
185
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
186
|
+
__epPropKey: true;
|
187
|
+
} & {
|
188
|
+
readonly default: undefined;
|
189
|
+
};
|
190
|
+
autocomplete: {
|
191
|
+
readonly type: PropType<string>;
|
192
|
+
readonly required: false;
|
193
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
194
|
+
__epPropKey: true;
|
195
|
+
} & {
|
196
|
+
readonly default: string;
|
197
|
+
};
|
179
198
|
automaticDropdown: BooleanConstructor;
|
180
199
|
size: {
|
181
|
-
readonly type: PropType<
|
200
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
182
201
|
readonly required: false;
|
183
202
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
184
203
|
__epPropKey: true;
|
185
204
|
};
|
186
|
-
effect:
|
205
|
+
effect: {
|
206
|
+
readonly type: PropType<PopperEffect>;
|
207
|
+
readonly required: false;
|
208
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
209
|
+
__epPropKey: true;
|
210
|
+
} & {
|
211
|
+
readonly default: string;
|
212
|
+
};
|
187
213
|
disabled: BooleanConstructor;
|
188
214
|
clearable: BooleanConstructor;
|
189
215
|
filterable: BooleanConstructor;
|
190
216
|
allowCreate: BooleanConstructor;
|
191
217
|
loading: BooleanConstructor;
|
192
|
-
popperClass:
|
193
|
-
|
218
|
+
popperClass: {
|
219
|
+
readonly type: PropType<string>;
|
220
|
+
readonly required: false;
|
221
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
222
|
+
__epPropKey: true;
|
223
|
+
} & {
|
224
|
+
readonly default: string;
|
225
|
+
};
|
226
|
+
popperOptions: {
|
227
|
+
readonly type: PropType<any>;
|
228
|
+
readonly required: false;
|
229
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
230
|
+
__epPropKey: true;
|
231
|
+
} & {
|
232
|
+
readonly default: () => Partial<Options>;
|
233
|
+
};
|
194
234
|
remote: BooleanConstructor;
|
195
235
|
loadingText: StringConstructor;
|
196
236
|
noMatchText: StringConstructor;
|
@@ -198,7 +238,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
198
238
|
remoteMethod: FunctionConstructor;
|
199
239
|
filterMethod: FunctionConstructor;
|
200
240
|
multiple: BooleanConstructor;
|
201
|
-
multipleLimit:
|
241
|
+
multipleLimit: {
|
242
|
+
readonly type: PropType<number>;
|
243
|
+
readonly required: false;
|
244
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
245
|
+
__epPropKey: true;
|
246
|
+
} & {
|
247
|
+
readonly default: number;
|
248
|
+
};
|
202
249
|
placeholder: {
|
203
250
|
readonly type: PropType<string>;
|
204
251
|
readonly required: false;
|
@@ -206,49 +253,126 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
206
253
|
__epPropKey: true;
|
207
254
|
};
|
208
255
|
defaultFirstOption: BooleanConstructor;
|
209
|
-
reserveKeyword:
|
210
|
-
|
256
|
+
reserveKeyword: {
|
257
|
+
readonly type: PropType<boolean>;
|
258
|
+
readonly required: false;
|
259
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
260
|
+
__epPropKey: true;
|
261
|
+
} & {
|
262
|
+
readonly default: boolean;
|
263
|
+
};
|
264
|
+
valueKey: {
|
265
|
+
readonly type: PropType<string>;
|
266
|
+
readonly required: false;
|
267
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
268
|
+
__epPropKey: true;
|
269
|
+
} & {
|
270
|
+
readonly default: string;
|
271
|
+
};
|
211
272
|
collapseTags: BooleanConstructor;
|
212
273
|
collapseTagsTooltip: BooleanConstructor;
|
213
|
-
maxCollapseTags:
|
214
|
-
|
215
|
-
|
274
|
+
maxCollapseTags: {
|
275
|
+
readonly type: PropType<number>;
|
276
|
+
readonly required: false;
|
277
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
278
|
+
__epPropKey: true;
|
279
|
+
} & {
|
280
|
+
readonly default: number;
|
281
|
+
};
|
282
|
+
teleported: {
|
283
|
+
readonly type: PropType<boolean>;
|
284
|
+
readonly required: false;
|
285
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
286
|
+
__epPropKey: true;
|
287
|
+
} & {
|
288
|
+
readonly default: true;
|
289
|
+
};
|
290
|
+
persistent: {
|
291
|
+
readonly type: PropType<boolean>;
|
292
|
+
readonly required: false;
|
293
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
294
|
+
__epPropKey: true;
|
295
|
+
} & {
|
296
|
+
readonly default: boolean;
|
297
|
+
};
|
216
298
|
clearIcon: {
|
217
|
-
readonly type: PropType<
|
299
|
+
readonly type: PropType<string | Component>;
|
218
300
|
readonly required: false;
|
219
301
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
220
302
|
__epPropKey: true;
|
221
303
|
};
|
222
304
|
fitInputWidth: BooleanConstructor;
|
223
305
|
suffixIcon: {
|
224
|
-
readonly type: PropType<
|
306
|
+
readonly type: PropType<string | Component>;
|
225
307
|
readonly required: false;
|
226
308
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
227
309
|
__epPropKey: true;
|
228
310
|
};
|
229
311
|
tagType: {
|
230
312
|
default: string;
|
231
|
-
type: PropType<
|
313
|
+
type: PropType<"success" | "warning" | "info" | "primary" | "danger">;
|
232
314
|
required: false;
|
233
315
|
validator: ((val: unknown) => boolean) | undefined;
|
234
316
|
__epPropKey: true;
|
235
317
|
};
|
236
318
|
tagEffect: {
|
237
319
|
default: string;
|
238
|
-
type: PropType<
|
320
|
+
type: PropType<"dark" | "light" | "plain">;
|
239
321
|
required: false;
|
240
322
|
validator: ((val: unknown) => boolean) | undefined;
|
241
323
|
__epPropKey: true;
|
242
324
|
};
|
243
|
-
validateEvent:
|
325
|
+
validateEvent: {
|
326
|
+
readonly type: PropType<boolean>;
|
327
|
+
readonly required: false;
|
328
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
329
|
+
__epPropKey: true;
|
330
|
+
} & {
|
331
|
+
readonly default: boolean;
|
332
|
+
};
|
244
333
|
remoteShowSuffix: BooleanConstructor;
|
245
|
-
showArrow:
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
334
|
+
showArrow: {
|
335
|
+
readonly type: PropType<boolean>;
|
336
|
+
readonly required: false;
|
337
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
338
|
+
__epPropKey: true;
|
339
|
+
} & {
|
340
|
+
readonly default: boolean;
|
341
|
+
};
|
342
|
+
offset: {
|
343
|
+
readonly type: PropType<number>;
|
344
|
+
readonly required: false;
|
345
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
346
|
+
__epPropKey: true;
|
347
|
+
} & {
|
348
|
+
readonly default: number;
|
349
|
+
};
|
350
|
+
placement: {
|
351
|
+
readonly type: PropType<any>;
|
352
|
+
readonly required: false;
|
353
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
354
|
+
__epPropKey: true;
|
355
|
+
} & {
|
356
|
+
readonly default: string;
|
357
|
+
};
|
358
|
+
fallbackPlacements: {
|
359
|
+
readonly type: PropType<Placement[]>;
|
360
|
+
readonly required: false;
|
361
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
362
|
+
__epPropKey: true;
|
363
|
+
} & {
|
364
|
+
readonly default: string[];
|
365
|
+
};
|
366
|
+
tabindex: {
|
367
|
+
readonly type: PropType<string | number>;
|
368
|
+
readonly required: false;
|
369
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
370
|
+
__epPropKey: true;
|
371
|
+
} & {
|
372
|
+
readonly default: number;
|
373
|
+
};
|
250
374
|
appendTo: {
|
251
|
-
readonly type: PropType<
|
375
|
+
readonly type: PropType<string | HTMLElement>;
|
252
376
|
readonly required: false;
|
253
377
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
254
378
|
__epPropKey: true;
|
@@ -309,13 +433,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
309
433
|
};
|
310
434
|
states: {
|
311
435
|
inputValue: string;
|
312
|
-
options: Map<
|
313
|
-
cachedOptions: Map<
|
314
|
-
optionValues:
|
436
|
+
options: Map<string | number | boolean | Record<string, any>, SelectOptionProxy>;
|
437
|
+
cachedOptions: Map<string | number | boolean | Record<string, any>, SelectOptionProxy>;
|
438
|
+
optionValues: (string | number | boolean | Record<string, any>)[];
|
315
439
|
selected: {
|
316
|
-
value:
|
317
|
-
currentLabel:
|
318
|
-
isDisabled?:
|
440
|
+
value: string | number | boolean | Record<string, any>;
|
441
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
442
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
319
443
|
}[];
|
320
444
|
hoveringIndex: number;
|
321
445
|
inputHovering: boolean;
|
@@ -328,7 +452,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
328
452
|
};
|
329
453
|
isFocused: Ref<boolean>;
|
330
454
|
expanded: Ref<boolean>;
|
331
|
-
optionsArray: ComputedRef<
|
455
|
+
optionsArray: ComputedRef< SelectOptionProxy[]>;
|
332
456
|
hoverOption: Ref<any>;
|
333
457
|
selectSize: ComputedRef<"" | "small" | "default" | "large">;
|
334
458
|
filteredOptionsCount: ComputedRef<number>;
|
@@ -337,17 +461,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
337
461
|
debouncedOnInputChange: DebouncedFunc<() => void>;
|
338
462
|
onInput: (event: Event) => void;
|
339
463
|
deletePrevTag: (e: KeyboardEvent) => void;
|
340
|
-
deleteTag: (event: MouseEvent, tag:
|
464
|
+
deleteTag: (event: MouseEvent, tag: SelectOptionProxy | OptionBasic) => void;
|
341
465
|
deleteSelected: (event: Event) => void;
|
342
|
-
handleOptionSelect: (option:
|
343
|
-
scrollToOption: (option:
|
466
|
+
handleOptionSelect: (option: SelectOptionProxy) => void;
|
467
|
+
scrollToOption: (option: SelectOptionProxy | SelectOptionProxy[] | OptionBasic[]) => void;
|
344
468
|
hasModelValue: ComputedRef<boolean>;
|
345
469
|
shouldShowPlaceholder: ComputedRef<boolean>;
|
346
470
|
currentPlaceholder: ComputedRef<string>;
|
347
471
|
mouseEnterEventName: ComputedRef<"mouseenter" | null>;
|
348
472
|
needStatusIcon: ComputedRef<boolean>;
|
349
473
|
showClose: ComputedRef<boolean>;
|
350
|
-
iconComponent: ComputedRef<
|
474
|
+
iconComponent: ComputedRef<(string | Component) | undefined>;
|
351
475
|
iconReverse: ComputedRef<string>;
|
352
476
|
validateState: ComputedRef<"" | "error" | "success" | "validating">;
|
353
477
|
validateIcon: ComputedRef<"" | Component>;
|
@@ -360,8 +484,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
360
484
|
handleCompositionStart: (event: CompositionEvent) => void;
|
361
485
|
handleCompositionUpdate: (event: CompositionEvent) => void;
|
362
486
|
handleCompositionEnd: (event: CompositionEvent) => void;
|
363
|
-
onOptionCreate: (vm:
|
364
|
-
onOptionDestroy: (key:
|
487
|
+
onOptionCreate: (vm: SelectOptionProxy) => void;
|
488
|
+
onOptionDestroy: (key: string | number | boolean | Record<string, any>, vm: SelectOptionProxy) => void;
|
365
489
|
handleMenuEnter: () => void;
|
366
490
|
focus: () => void;
|
367
491
|
blur: () => void;
|
@@ -370,18 +494,18 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
370
494
|
handleEsc: () => void;
|
371
495
|
toggleMenu: () => void;
|
372
496
|
selectOption: () => void;
|
373
|
-
getValueKey: (item:
|
497
|
+
getValueKey: (item: SelectOptionProxy | OptionBasic) => any;
|
374
498
|
navigateOptions: (direction: "prev" | "next") => void;
|
375
499
|
dropdownMenuVisible: WritableComputedRef<boolean>;
|
376
500
|
showTagList: ComputedRef<{
|
377
|
-
value:
|
378
|
-
currentLabel:
|
379
|
-
isDisabled?:
|
501
|
+
value: string | number | boolean | Record<string, any>;
|
502
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
503
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
380
504
|
}[]>;
|
381
505
|
collapseTagList: ComputedRef<{
|
382
|
-
value:
|
383
|
-
currentLabel:
|
384
|
-
isDisabled?:
|
506
|
+
value: string | number | boolean | Record<string, any>;
|
507
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
508
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
385
509
|
}[]>;
|
386
510
|
popupScroll: (data: {
|
387
511
|
scrollTop: number;
|
@@ -411,34 +535,34 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
411
535
|
offset: number;
|
412
536
|
multiple: boolean;
|
413
537
|
loading: boolean;
|
414
|
-
modelValue:
|
415
|
-
placement:
|
416
|
-
effect:
|
417
|
-
tabindex:
|
418
|
-
valueOnClear:
|
538
|
+
modelValue: (string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[];
|
539
|
+
placement: any;
|
540
|
+
effect: PopperEffect;
|
541
|
+
tabindex: string | number;
|
542
|
+
valueOnClear: string | number | boolean | Function;
|
419
543
|
autocomplete: string;
|
420
|
-
validateEvent:
|
544
|
+
validateEvent: boolean;
|
421
545
|
clearable: boolean;
|
422
546
|
fallbackPlacements: Placement[];
|
423
|
-
popperOptions: Partial<
|
547
|
+
popperOptions: Partial<Options>;
|
424
548
|
popperClass: string;
|
425
|
-
teleported:
|
426
|
-
persistent:
|
427
|
-
showArrow:
|
549
|
+
teleported: boolean;
|
550
|
+
persistent: boolean;
|
551
|
+
showArrow: boolean;
|
428
552
|
valueKey: string;
|
429
553
|
fitInputWidth: boolean;
|
430
554
|
filterable: boolean;
|
431
555
|
collapseTags: boolean;
|
432
556
|
maxCollapseTags: number;
|
433
557
|
collapseTagsTooltip: boolean;
|
434
|
-
tagType:
|
435
|
-
tagEffect:
|
558
|
+
tagType: "success" | "warning" | "info" | "primary" | "danger";
|
559
|
+
tagEffect: "dark" | "light" | "plain";
|
436
560
|
automaticDropdown: boolean;
|
437
561
|
allowCreate: boolean;
|
438
562
|
remote: boolean;
|
439
563
|
multipleLimit: number;
|
440
564
|
defaultFirstOption: boolean;
|
441
|
-
reserveKeyword:
|
565
|
+
reserveKeyword: boolean;
|
442
566
|
remoteShowSuffix: boolean;
|
443
567
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
444
568
|
P: {};
|
@@ -450,26 +574,68 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
450
574
|
}, Readonly< ExtractPropTypes<{
|
451
575
|
ariaLabel: StringConstructor;
|
452
576
|
emptyValues: ArrayConstructor;
|
453
|
-
valueOnClear:
|
577
|
+
valueOnClear: {
|
578
|
+
readonly type: PropType<string | number | boolean | Function>;
|
579
|
+
readonly required: false;
|
580
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
581
|
+
__epPropKey: true;
|
582
|
+
} & {
|
583
|
+
readonly default: undefined;
|
584
|
+
};
|
454
585
|
name: StringConstructor;
|
455
586
|
id: StringConstructor;
|
456
|
-
modelValue:
|
457
|
-
|
587
|
+
modelValue: {
|
588
|
+
readonly type: PropType<(string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[]>;
|
589
|
+
readonly required: false;
|
590
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
591
|
+
__epPropKey: true;
|
592
|
+
} & {
|
593
|
+
readonly default: undefined;
|
594
|
+
};
|
595
|
+
autocomplete: {
|
596
|
+
readonly type: PropType<string>;
|
597
|
+
readonly required: false;
|
598
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
599
|
+
__epPropKey: true;
|
600
|
+
} & {
|
601
|
+
readonly default: string;
|
602
|
+
};
|
458
603
|
automaticDropdown: BooleanConstructor;
|
459
604
|
size: {
|
460
|
-
readonly type: PropType<
|
605
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
461
606
|
readonly required: false;
|
462
607
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
463
608
|
__epPropKey: true;
|
464
609
|
};
|
465
|
-
effect:
|
610
|
+
effect: {
|
611
|
+
readonly type: PropType<PopperEffect>;
|
612
|
+
readonly required: false;
|
613
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
614
|
+
__epPropKey: true;
|
615
|
+
} & {
|
616
|
+
readonly default: string;
|
617
|
+
};
|
466
618
|
disabled: BooleanConstructor;
|
467
619
|
clearable: BooleanConstructor;
|
468
620
|
filterable: BooleanConstructor;
|
469
621
|
allowCreate: BooleanConstructor;
|
470
622
|
loading: BooleanConstructor;
|
471
|
-
popperClass:
|
472
|
-
|
623
|
+
popperClass: {
|
624
|
+
readonly type: PropType<string>;
|
625
|
+
readonly required: false;
|
626
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
627
|
+
__epPropKey: true;
|
628
|
+
} & {
|
629
|
+
readonly default: string;
|
630
|
+
};
|
631
|
+
popperOptions: {
|
632
|
+
readonly type: PropType<any>;
|
633
|
+
readonly required: false;
|
634
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
635
|
+
__epPropKey: true;
|
636
|
+
} & {
|
637
|
+
readonly default: () => Partial<Options>;
|
638
|
+
};
|
473
639
|
remote: BooleanConstructor;
|
474
640
|
loadingText: StringConstructor;
|
475
641
|
noMatchText: StringConstructor;
|
@@ -477,7 +643,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
477
643
|
remoteMethod: FunctionConstructor;
|
478
644
|
filterMethod: FunctionConstructor;
|
479
645
|
multiple: BooleanConstructor;
|
480
|
-
multipleLimit:
|
646
|
+
multipleLimit: {
|
647
|
+
readonly type: PropType<number>;
|
648
|
+
readonly required: false;
|
649
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
650
|
+
__epPropKey: true;
|
651
|
+
} & {
|
652
|
+
readonly default: number;
|
653
|
+
};
|
481
654
|
placeholder: {
|
482
655
|
readonly type: PropType<string>;
|
483
656
|
readonly required: false;
|
@@ -485,49 +658,126 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
485
658
|
__epPropKey: true;
|
486
659
|
};
|
487
660
|
defaultFirstOption: BooleanConstructor;
|
488
|
-
reserveKeyword:
|
489
|
-
|
661
|
+
reserveKeyword: {
|
662
|
+
readonly type: PropType<boolean>;
|
663
|
+
readonly required: false;
|
664
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
665
|
+
__epPropKey: true;
|
666
|
+
} & {
|
667
|
+
readonly default: boolean;
|
668
|
+
};
|
669
|
+
valueKey: {
|
670
|
+
readonly type: PropType<string>;
|
671
|
+
readonly required: false;
|
672
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
673
|
+
__epPropKey: true;
|
674
|
+
} & {
|
675
|
+
readonly default: string;
|
676
|
+
};
|
490
677
|
collapseTags: BooleanConstructor;
|
491
678
|
collapseTagsTooltip: BooleanConstructor;
|
492
|
-
maxCollapseTags:
|
493
|
-
|
494
|
-
|
679
|
+
maxCollapseTags: {
|
680
|
+
readonly type: PropType<number>;
|
681
|
+
readonly required: false;
|
682
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
683
|
+
__epPropKey: true;
|
684
|
+
} & {
|
685
|
+
readonly default: number;
|
686
|
+
};
|
687
|
+
teleported: {
|
688
|
+
readonly type: PropType<boolean>;
|
689
|
+
readonly required: false;
|
690
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
691
|
+
__epPropKey: true;
|
692
|
+
} & {
|
693
|
+
readonly default: true;
|
694
|
+
};
|
695
|
+
persistent: {
|
696
|
+
readonly type: PropType<boolean>;
|
697
|
+
readonly required: false;
|
698
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
699
|
+
__epPropKey: true;
|
700
|
+
} & {
|
701
|
+
readonly default: boolean;
|
702
|
+
};
|
495
703
|
clearIcon: {
|
496
|
-
readonly type: PropType<
|
704
|
+
readonly type: PropType<string | Component>;
|
497
705
|
readonly required: false;
|
498
706
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
499
707
|
__epPropKey: true;
|
500
708
|
};
|
501
709
|
fitInputWidth: BooleanConstructor;
|
502
710
|
suffixIcon: {
|
503
|
-
readonly type: PropType<
|
711
|
+
readonly type: PropType<string | Component>;
|
504
712
|
readonly required: false;
|
505
713
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
506
714
|
__epPropKey: true;
|
507
715
|
};
|
508
716
|
tagType: {
|
509
717
|
default: string;
|
510
|
-
type: PropType<
|
718
|
+
type: PropType<"success" | "warning" | "info" | "primary" | "danger">;
|
511
719
|
required: false;
|
512
720
|
validator: ((val: unknown) => boolean) | undefined;
|
513
721
|
__epPropKey: true;
|
514
722
|
};
|
515
723
|
tagEffect: {
|
516
724
|
default: string;
|
517
|
-
type: PropType<
|
725
|
+
type: PropType<"dark" | "light" | "plain">;
|
518
726
|
required: false;
|
519
727
|
validator: ((val: unknown) => boolean) | undefined;
|
520
728
|
__epPropKey: true;
|
521
729
|
};
|
522
|
-
validateEvent:
|
730
|
+
validateEvent: {
|
731
|
+
readonly type: PropType<boolean>;
|
732
|
+
readonly required: false;
|
733
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
734
|
+
__epPropKey: true;
|
735
|
+
} & {
|
736
|
+
readonly default: boolean;
|
737
|
+
};
|
523
738
|
remoteShowSuffix: BooleanConstructor;
|
524
|
-
showArrow:
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
739
|
+
showArrow: {
|
740
|
+
readonly type: PropType<boolean>;
|
741
|
+
readonly required: false;
|
742
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
743
|
+
__epPropKey: true;
|
744
|
+
} & {
|
745
|
+
readonly default: boolean;
|
746
|
+
};
|
747
|
+
offset: {
|
748
|
+
readonly type: PropType<number>;
|
749
|
+
readonly required: false;
|
750
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
751
|
+
__epPropKey: true;
|
752
|
+
} & {
|
753
|
+
readonly default: number;
|
754
|
+
};
|
755
|
+
placement: {
|
756
|
+
readonly type: PropType<any>;
|
757
|
+
readonly required: false;
|
758
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
759
|
+
__epPropKey: true;
|
760
|
+
} & {
|
761
|
+
readonly default: string;
|
762
|
+
};
|
763
|
+
fallbackPlacements: {
|
764
|
+
readonly type: PropType<Placement[]>;
|
765
|
+
readonly required: false;
|
766
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
767
|
+
__epPropKey: true;
|
768
|
+
} & {
|
769
|
+
readonly default: string[];
|
770
|
+
};
|
771
|
+
tabindex: {
|
772
|
+
readonly type: PropType<string | number>;
|
773
|
+
readonly required: false;
|
774
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
775
|
+
__epPropKey: true;
|
776
|
+
} & {
|
777
|
+
readonly default: number;
|
778
|
+
};
|
529
779
|
appendTo: {
|
530
|
-
readonly type: PropType<
|
780
|
+
readonly type: PropType<string | HTMLElement>;
|
531
781
|
readonly required: false;
|
532
782
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
533
783
|
__epPropKey: true;
|
@@ -588,13 +838,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
588
838
|
};
|
589
839
|
states: {
|
590
840
|
inputValue: string;
|
591
|
-
options: Map<
|
592
|
-
cachedOptions: Map<
|
593
|
-
optionValues:
|
841
|
+
options: Map<string | number | boolean | Record<string, any>, SelectOptionProxy>;
|
842
|
+
cachedOptions: Map<string | number | boolean | Record<string, any>, SelectOptionProxy>;
|
843
|
+
optionValues: (string | number | boolean | Record<string, any>)[];
|
594
844
|
selected: {
|
595
|
-
value:
|
596
|
-
currentLabel:
|
597
|
-
isDisabled?:
|
845
|
+
value: string | number | boolean | Record<string, any>;
|
846
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
847
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
598
848
|
}[];
|
599
849
|
hoveringIndex: number;
|
600
850
|
inputHovering: boolean;
|
@@ -607,7 +857,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
607
857
|
};
|
608
858
|
isFocused: Ref<boolean>;
|
609
859
|
expanded: Ref<boolean>;
|
610
|
-
optionsArray: ComputedRef<
|
860
|
+
optionsArray: ComputedRef< SelectOptionProxy[]>;
|
611
861
|
hoverOption: Ref<any>;
|
612
862
|
selectSize: ComputedRef<"" | "small" | "default" | "large">;
|
613
863
|
filteredOptionsCount: ComputedRef<number>;
|
@@ -616,17 +866,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
616
866
|
debouncedOnInputChange: DebouncedFunc<() => void>;
|
617
867
|
onInput: (event: Event) => void;
|
618
868
|
deletePrevTag: (e: KeyboardEvent) => void;
|
619
|
-
deleteTag: (event: MouseEvent, tag:
|
869
|
+
deleteTag: (event: MouseEvent, tag: SelectOptionProxy | OptionBasic) => void;
|
620
870
|
deleteSelected: (event: Event) => void;
|
621
|
-
handleOptionSelect: (option:
|
622
|
-
scrollToOption: (option:
|
871
|
+
handleOptionSelect: (option: SelectOptionProxy) => void;
|
872
|
+
scrollToOption: (option: SelectOptionProxy | SelectOptionProxy[] | OptionBasic[]) => void;
|
623
873
|
hasModelValue: ComputedRef<boolean>;
|
624
874
|
shouldShowPlaceholder: ComputedRef<boolean>;
|
625
875
|
currentPlaceholder: ComputedRef<string>;
|
626
876
|
mouseEnterEventName: ComputedRef<"mouseenter" | null>;
|
627
877
|
needStatusIcon: ComputedRef<boolean>;
|
628
878
|
showClose: ComputedRef<boolean>;
|
629
|
-
iconComponent: ComputedRef<
|
879
|
+
iconComponent: ComputedRef<(string | Component) | undefined>;
|
630
880
|
iconReverse: ComputedRef<string>;
|
631
881
|
validateState: ComputedRef<"" | "error" | "success" | "validating">;
|
632
882
|
validateIcon: ComputedRef<"" | Component>;
|
@@ -639,8 +889,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
639
889
|
handleCompositionStart: (event: CompositionEvent) => void;
|
640
890
|
handleCompositionUpdate: (event: CompositionEvent) => void;
|
641
891
|
handleCompositionEnd: (event: CompositionEvent) => void;
|
642
|
-
onOptionCreate: (vm:
|
643
|
-
onOptionDestroy: (key:
|
892
|
+
onOptionCreate: (vm: SelectOptionProxy) => void;
|
893
|
+
onOptionDestroy: (key: string | number | boolean | Record<string, any>, vm: SelectOptionProxy) => void;
|
644
894
|
handleMenuEnter: () => void;
|
645
895
|
focus: () => void;
|
646
896
|
blur: () => void;
|
@@ -649,18 +899,18 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
649
899
|
handleEsc: () => void;
|
650
900
|
toggleMenu: () => void;
|
651
901
|
selectOption: () => void;
|
652
|
-
getValueKey: (item:
|
902
|
+
getValueKey: (item: SelectOptionProxy | OptionBasic) => any;
|
653
903
|
navigateOptions: (direction: "prev" | "next") => void;
|
654
904
|
dropdownMenuVisible: WritableComputedRef<boolean>;
|
655
905
|
showTagList: ComputedRef<{
|
656
|
-
value:
|
657
|
-
currentLabel:
|
658
|
-
isDisabled?:
|
906
|
+
value: string | number | boolean | Record<string, any>;
|
907
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
908
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
659
909
|
}[]>;
|
660
910
|
collapseTagList: ComputedRef<{
|
661
|
-
value:
|
662
|
-
currentLabel:
|
663
|
-
isDisabled?:
|
911
|
+
value: string | number | boolean | Record<string, any>;
|
912
|
+
currentLabel: SelectOptionProxy["currentLabel"];
|
913
|
+
isDisabled?: SelectOptionProxy["isDisabled"] | undefined;
|
664
914
|
}[]>;
|
665
915
|
popupScroll: (data: {
|
666
916
|
scrollTop: number;
|
@@ -690,34 +940,34 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
690
940
|
offset: number;
|
691
941
|
multiple: boolean;
|
692
942
|
loading: boolean;
|
693
|
-
modelValue:
|
694
|
-
placement:
|
695
|
-
effect:
|
696
|
-
tabindex:
|
697
|
-
valueOnClear:
|
943
|
+
modelValue: (string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[];
|
944
|
+
placement: any;
|
945
|
+
effect: PopperEffect;
|
946
|
+
tabindex: string | number;
|
947
|
+
valueOnClear: string | number | boolean | Function;
|
698
948
|
autocomplete: string;
|
699
|
-
validateEvent:
|
949
|
+
validateEvent: boolean;
|
700
950
|
clearable: boolean;
|
701
951
|
fallbackPlacements: Placement[];
|
702
|
-
popperOptions: Partial<
|
952
|
+
popperOptions: Partial<Options>;
|
703
953
|
popperClass: string;
|
704
|
-
teleported:
|
705
|
-
persistent:
|
706
|
-
showArrow:
|
954
|
+
teleported: boolean;
|
955
|
+
persistent: boolean;
|
956
|
+
showArrow: boolean;
|
707
957
|
valueKey: string;
|
708
958
|
fitInputWidth: boolean;
|
709
959
|
filterable: boolean;
|
710
960
|
collapseTags: boolean;
|
711
961
|
maxCollapseTags: number;
|
712
962
|
collapseTagsTooltip: boolean;
|
713
|
-
tagType:
|
714
|
-
tagEffect:
|
963
|
+
tagType: "success" | "warning" | "info" | "primary" | "danger";
|
964
|
+
tagEffect: "dark" | "light" | "plain";
|
715
965
|
automaticDropdown: boolean;
|
716
966
|
allowCreate: boolean;
|
717
967
|
remote: boolean;
|
718
968
|
multipleLimit: number;
|
719
969
|
defaultFirstOption: boolean;
|
720
|
-
reserveKeyword:
|
970
|
+
reserveKeyword: boolean;
|
721
971
|
remoteShowSuffix: boolean;
|
722
972
|
}> | null;
|
723
973
|
dialogRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{}>, {
|