lew-ui 2.7.91 → 2.8.2
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/CloseButton.vue.d.ts +1 -1
- package/dist/_components/CloseIcon.vue.d.ts +1 -1
- package/dist/_components/CommonIcon.vue.d.ts +1 -1
- package/dist/_components/CommonInput.vue.d.ts +3 -81
- package/dist/components/data/pagination/src/LewPagination.vue.d.ts +13 -2
- package/dist/components/data/pagination/src/props.d.ts +5 -0
- package/dist/components/data/tree/src/LewTreeItem.vue.d.ts +1 -1
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +9 -36
- package/dist/components/feedback/drawer/src/props.d.ts +5 -18
- package/dist/components/feedback/index.d.ts +0 -1
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +9 -52
- package/dist/components/feedback/modal/src/props.d.ts +5 -26
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +10 -444
- package/dist/components/feedback/popok/src/props.d.ts +5 -20
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +1 -1
- package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +1 -1
- package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +1 -1
- package/dist/components/form/date-range-picker/src/LewDateRangePicker.vue.d.ts +1 -1
- package/dist/components/form/form/src/LewForm.vue.d.ts +1 -1
- package/dist/components/form/form/src/LewFormItem.vue.d.ts +1 -1
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/input/src/LewInput.vue.d.ts +1 -76
- package/dist/components/form/input/src/props.d.ts +2 -36
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +1 -1
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +3 -81
- package/dist/components/form/select/src/LewSelect.vue.d.ts +9 -167
- package/dist/components/form/slider/src/LewSlider.vue.d.ts +1 -1
- package/dist/components/form/slider-range/src/LewSliderRange.vue.d.ts +1 -1
- package/dist/components/form/tabs/src/LewTabs.vue.d.ts +1 -1
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +2 -2
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +11 -167
- package/dist/components/form/upload/src/LewUpload.vue.d.ts +6 -6
- package/dist/components/general/button/index.d.ts +4 -3
- package/dist/components/general/button/src/LewButton.vue.d.ts +5 -5
- package/dist/components/general/button/src/props.d.ts +3 -1
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +1 -1
- package/dist/components/general/image/src/LewImage.vue.d.ts +1 -1
- package/dist/components/general/index.d.ts +0 -2
- package/dist/components/general/tag/src/LewTag.vue.d.ts +3 -3
- package/dist/components/navigation/index.d.ts +0 -3
- package/dist/directives/index.d.ts +0 -1
- package/dist/global.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.js +11441 -12348
- package/dist/locals/de.d.ts +17 -13
- package/dist/locals/en.d.ts +17 -13
- package/dist/locals/es.d.ts +17 -13
- package/dist/locals/fr.d.ts +17 -13
- package/dist/locals/it.d.ts +17 -13
- package/dist/locals/ja.d.ts +17 -13
- package/dist/locals/ko.d.ts +17 -13
- package/dist/locals/pt.d.ts +17 -13
- package/dist/locals/zh.d.ts +17 -13
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -244
- package/dist/methods/dialog/src/props.d.ts +5 -20
- package/dist/methods/message/src/MessageContainer.vue.d.ts +9 -0
- package/dist/methods/message/src/MessageItem.vue.d.ts +6 -0
- package/dist/methods/message/src/index.d.ts +1 -0
- package/dist/types/components.d.ts +11 -21
- package/dist/types/directives.d.ts +0 -4
- package/dist/types/methods.d.ts +3 -4
- package/dist/utils/index.d.ts +4 -0
- package/dist/validators/typeValues.d.ts +1 -6
- package/package.json +2 -3
- package/dist/components/feedback/empty/index.d.ts +0 -2
- package/dist/components/feedback/empty/src/LewEmpty.vue.d.ts +0 -87
- package/dist/components/feedback/empty/src/props.d.ts +0 -37
- package/dist/components/form/input-table/index.d.ts +0 -3
- package/dist/components/form/input-table/src/FormModal.vue.d.ts +0 -271
- package/dist/components/form/input-table/src/LewInputTable.vue.d.ts +0 -794
- package/dist/components/form/input-table/src/emits.d.ts +0 -3
- package/dist/components/form/input-table/src/props.d.ts +0 -116
- package/dist/components/general/mark/index.d.ts +0 -2
- package/dist/components/general/mark/src/LewMark.vue.d.ts +0 -59
- package/dist/components/general/mark/src/props.d.ts +0 -24
- package/dist/components/general/title/index.d.ts +0 -3
- package/dist/components/general/title/src/LewTitle.vue.d.ts +0 -64
- package/dist/components/general/title/src/emits.d.ts +0 -3
- package/dist/components/general/title/src/props.d.ts +0 -25
- package/dist/components/navigation/back-top/index.d.ts +0 -7
- package/dist/components/navigation/back-top/src/LewBackTop.vue.d.ts +0 -61
- package/dist/components/navigation/back-top/src/emits.d.ts +0 -2
- package/dist/components/navigation/back-top/src/props.d.ts +0 -23
- package/dist/components/navigation/breadcrumb/index.d.ts +0 -7
- package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +0 -35
- package/dist/components/navigation/breadcrumb/src/emits.d.ts +0 -5
- package/dist/components/navigation/breadcrumb/src/props.d.ts +0 -17
- package/dist/components/navigation/steps/index.d.ts +0 -8
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +0 -75
- package/dist/components/navigation/steps/src/emits.d.ts +0 -4
- package/dist/components/navigation/steps/src/model.d.ts +0 -7
- package/dist/components/navigation/steps/src/props.d.ts +0 -33
- package/dist/directives/backtop/index.d.ts +0 -4
|
@@ -310,12 +310,12 @@ declare function __VLS_template(): {
|
|
|
310
310
|
"update:keyword": (value: any) => void;
|
|
311
311
|
}, import('vue').PublicProps, {
|
|
312
312
|
loading: boolean;
|
|
313
|
+
width: string;
|
|
313
314
|
size: string;
|
|
314
315
|
disabled: boolean;
|
|
315
316
|
placeholder: string;
|
|
316
317
|
focus: boolean;
|
|
317
318
|
readonly: boolean;
|
|
318
|
-
width: string;
|
|
319
319
|
clearable: boolean;
|
|
320
320
|
multiple: boolean;
|
|
321
321
|
searchable: boolean;
|
|
@@ -394,34 +394,6 @@ declare function __VLS_template(): {
|
|
|
394
394
|
type: BooleanConstructor;
|
|
395
395
|
validator: (value: any) => boolean;
|
|
396
396
|
};
|
|
397
|
-
prefixes: {
|
|
398
|
-
type: PropType<import('../../../..').LewInputPrefixesType>;
|
|
399
|
-
typeValues: import('../../../..').LewInputPrefixesType[];
|
|
400
|
-
validator: (value: any) => boolean;
|
|
401
|
-
};
|
|
402
|
-
prefixesOptions: {
|
|
403
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
404
|
-
default: () => never[];
|
|
405
|
-
validator: (value: any[] | undefined) => boolean;
|
|
406
|
-
};
|
|
407
|
-
prefixesTooltip: {
|
|
408
|
-
type: StringConstructor;
|
|
409
|
-
validator: (value: any) => boolean;
|
|
410
|
-
};
|
|
411
|
-
suffix: {
|
|
412
|
-
type: PropType<import('../../../..').LewInputSuffixType>;
|
|
413
|
-
typeValues: import('../../../..').LewInputSuffixType[];
|
|
414
|
-
validator: (value: any) => boolean;
|
|
415
|
-
};
|
|
416
|
-
suffixOptions: {
|
|
417
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
418
|
-
default: () => never[];
|
|
419
|
-
validator: (value: any[] | undefined) => boolean;
|
|
420
|
-
};
|
|
421
|
-
suffixTooltip: {
|
|
422
|
-
type: StringConstructor;
|
|
423
|
-
validator: (value: any) => boolean;
|
|
424
|
-
};
|
|
425
397
|
okByEnter: {
|
|
426
398
|
type: BooleanConstructor;
|
|
427
399
|
validator: (value: any) => boolean;
|
|
@@ -430,12 +402,6 @@ declare function __VLS_template(): {
|
|
|
430
402
|
type: globalThis.PropType<string | undefined>;
|
|
431
403
|
required: true;
|
|
432
404
|
};
|
|
433
|
-
prefixValue: {
|
|
434
|
-
type: globalThis.PropType<string>;
|
|
435
|
-
};
|
|
436
|
-
suffixValue: {
|
|
437
|
-
type: globalThis.PropType<string>;
|
|
438
|
-
};
|
|
439
405
|
}>> & Readonly<{
|
|
440
406
|
onInput?: ((value?: string | undefined) => any) | undefined;
|
|
441
407
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
@@ -443,8 +409,6 @@ declare function __VLS_template(): {
|
|
|
443
409
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
444
410
|
onClear?: (() => any) | undefined;
|
|
445
411
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
446
|
-
"onUpdate:prefixValue"?: ((value: string | undefined) => any) | undefined;
|
|
447
|
-
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
448
412
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
449
413
|
}>, {
|
|
450
414
|
focus: () => void;
|
|
@@ -457,14 +421,12 @@ declare function __VLS_template(): {
|
|
|
457
421
|
clear: () => void;
|
|
458
422
|
ok: (value?: string | undefined) => void;
|
|
459
423
|
"update:modelValue": (value: string | undefined) => void;
|
|
460
|
-
"update:prefixValue": (value: string | undefined) => void;
|
|
461
|
-
"update:suffixValue": (value: string | undefined) => void;
|
|
462
424
|
}, import('vue').PublicProps, {
|
|
425
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
463
426
|
type: import('../../../..').LewInputType;
|
|
464
427
|
size: import('../../../..').LewSize;
|
|
465
428
|
disabled: boolean;
|
|
466
429
|
readonly: boolean;
|
|
467
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
468
430
|
minWidth: string | number;
|
|
469
431
|
clearable: boolean;
|
|
470
432
|
showPassword: boolean;
|
|
@@ -473,8 +435,6 @@ declare function __VLS_template(): {
|
|
|
473
435
|
autoWidth: boolean;
|
|
474
436
|
selectByFocus: boolean;
|
|
475
437
|
copyable: boolean;
|
|
476
|
-
prefixesOptions: import('../../../..').LewContextMenusOption[];
|
|
477
|
-
suffixOptions: import('../../../..').LewContextMenusOption[];
|
|
478
438
|
okByEnter: boolean;
|
|
479
439
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
480
440
|
lewInputRef: HTMLInputElement;
|
|
@@ -556,34 +516,6 @@ declare function __VLS_template(): {
|
|
|
556
516
|
type: BooleanConstructor;
|
|
557
517
|
validator: (value: any) => boolean;
|
|
558
518
|
};
|
|
559
|
-
prefixes: {
|
|
560
|
-
type: PropType<import('../../../..').LewInputPrefixesType>;
|
|
561
|
-
typeValues: import('../../../..').LewInputPrefixesType[];
|
|
562
|
-
validator: (value: any) => boolean;
|
|
563
|
-
};
|
|
564
|
-
prefixesOptions: {
|
|
565
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
566
|
-
default: () => never[];
|
|
567
|
-
validator: (value: any[] | undefined) => boolean;
|
|
568
|
-
};
|
|
569
|
-
prefixesTooltip: {
|
|
570
|
-
type: StringConstructor;
|
|
571
|
-
validator: (value: any) => boolean;
|
|
572
|
-
};
|
|
573
|
-
suffix: {
|
|
574
|
-
type: PropType<import('../../../..').LewInputSuffixType>;
|
|
575
|
-
typeValues: import('../../../..').LewInputSuffixType[];
|
|
576
|
-
validator: (value: any) => boolean;
|
|
577
|
-
};
|
|
578
|
-
suffixOptions: {
|
|
579
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
580
|
-
default: () => never[];
|
|
581
|
-
validator: (value: any[] | undefined) => boolean;
|
|
582
|
-
};
|
|
583
|
-
suffixTooltip: {
|
|
584
|
-
type: StringConstructor;
|
|
585
|
-
validator: (value: any) => boolean;
|
|
586
|
-
};
|
|
587
519
|
okByEnter: {
|
|
588
520
|
type: BooleanConstructor;
|
|
589
521
|
validator: (value: any) => boolean;
|
|
@@ -592,12 +524,6 @@ declare function __VLS_template(): {
|
|
|
592
524
|
type: globalThis.PropType<string | undefined>;
|
|
593
525
|
required: true;
|
|
594
526
|
};
|
|
595
|
-
prefixValue: {
|
|
596
|
-
type: globalThis.PropType<string>;
|
|
597
|
-
};
|
|
598
|
-
suffixValue: {
|
|
599
|
-
type: globalThis.PropType<string>;
|
|
600
|
-
};
|
|
601
527
|
}>> & Readonly<{
|
|
602
528
|
onInput?: ((value?: string | undefined) => any) | undefined;
|
|
603
529
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
@@ -605,18 +531,16 @@ declare function __VLS_template(): {
|
|
|
605
531
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
606
532
|
onClear?: (() => any) | undefined;
|
|
607
533
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
608
|
-
"onUpdate:prefixValue"?: ((value: string | undefined) => any) | undefined;
|
|
609
|
-
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
610
534
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
611
535
|
}>, {
|
|
612
536
|
focus: () => void;
|
|
613
537
|
blur: () => void;
|
|
614
538
|
}, {}, {}, {}, {
|
|
539
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
615
540
|
type: import('../../../..').LewInputType;
|
|
616
541
|
size: import('../../../..').LewSize;
|
|
617
542
|
disabled: boolean;
|
|
618
543
|
readonly: boolean;
|
|
619
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
620
544
|
minWidth: string | number;
|
|
621
545
|
clearable: boolean;
|
|
622
546
|
showPassword: boolean;
|
|
@@ -625,8 +549,6 @@ declare function __VLS_template(): {
|
|
|
625
549
|
autoWidth: boolean;
|
|
626
550
|
selectByFocus: boolean;
|
|
627
551
|
copyable: boolean;
|
|
628
|
-
prefixesOptions: import('../../../..').LewContextMenusOption[];
|
|
629
|
-
suffixOptions: import('../../../..').LewContextMenusOption[];
|
|
630
552
|
okByEnter: boolean;
|
|
631
553
|
}> | null;
|
|
632
554
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -710,12 +632,12 @@ declare function __VLS_template(): {
|
|
|
710
632
|
};
|
|
711
633
|
}, {}, {}, {}, {
|
|
712
634
|
loading: boolean;
|
|
635
|
+
width: string;
|
|
713
636
|
size: string;
|
|
714
637
|
disabled: boolean;
|
|
715
638
|
placeholder: string;
|
|
716
639
|
focus: boolean;
|
|
717
640
|
readonly: boolean;
|
|
718
|
-
width: string;
|
|
719
641
|
clearable: boolean;
|
|
720
642
|
multiple: boolean;
|
|
721
643
|
searchable: boolean;
|
|
@@ -1026,7 +948,7 @@ declare function __VLS_template(): {
|
|
|
1026
948
|
onLoadStart?: (() => any) | undefined;
|
|
1027
949
|
onLoadEnd?: ((text: string) => any) | undefined;
|
|
1028
950
|
"onUpdate:expandKeys"?: ((value: string[]) => any) | undefined;
|
|
1029
|
-
}>, "
|
|
951
|
+
}>, "reset" | "search" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
|
|
1030
952
|
search: any;
|
|
1031
953
|
reset: () => void;
|
|
1032
954
|
getTree: () => {
|
|
@@ -1315,11 +1237,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1315
1237
|
onClear?: (() => any) | undefined;
|
|
1316
1238
|
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
1317
1239
|
}>, {
|
|
1240
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1318
1241
|
size: import('../../../..').LewSize;
|
|
1319
1242
|
disabled: boolean;
|
|
1320
1243
|
checkable: boolean;
|
|
1321
1244
|
readonly: boolean;
|
|
1322
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1323
1245
|
trigger: import('../../../..').LewTrigger;
|
|
1324
1246
|
clearable: boolean;
|
|
1325
1247
|
multiple: boolean;
|
|
@@ -1635,12 +1557,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1635
1557
|
"update:keyword": (value: any) => void;
|
|
1636
1558
|
}, import('vue').PublicProps, {
|
|
1637
1559
|
loading: boolean;
|
|
1560
|
+
width: string;
|
|
1638
1561
|
size: string;
|
|
1639
1562
|
disabled: boolean;
|
|
1640
1563
|
placeholder: string;
|
|
1641
1564
|
focus: boolean;
|
|
1642
1565
|
readonly: boolean;
|
|
1643
|
-
width: string;
|
|
1644
1566
|
clearable: boolean;
|
|
1645
1567
|
multiple: boolean;
|
|
1646
1568
|
searchable: boolean;
|
|
@@ -1719,34 +1641,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1719
1641
|
type: BooleanConstructor;
|
|
1720
1642
|
validator: (value: any) => boolean;
|
|
1721
1643
|
};
|
|
1722
|
-
prefixes: {
|
|
1723
|
-
type: PropType<import('../../../..').LewInputPrefixesType>;
|
|
1724
|
-
typeValues: import('../../../..').LewInputPrefixesType[];
|
|
1725
|
-
validator: (value: any) => boolean;
|
|
1726
|
-
};
|
|
1727
|
-
prefixesOptions: {
|
|
1728
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
1729
|
-
default: () => never[];
|
|
1730
|
-
validator: (value: any[] | undefined) => boolean;
|
|
1731
|
-
};
|
|
1732
|
-
prefixesTooltip: {
|
|
1733
|
-
type: StringConstructor;
|
|
1734
|
-
validator: (value: any) => boolean;
|
|
1735
|
-
};
|
|
1736
|
-
suffix: {
|
|
1737
|
-
type: PropType<import('../../../..').LewInputSuffixType>;
|
|
1738
|
-
typeValues: import('../../../..').LewInputSuffixType[];
|
|
1739
|
-
validator: (value: any) => boolean;
|
|
1740
|
-
};
|
|
1741
|
-
suffixOptions: {
|
|
1742
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
1743
|
-
default: () => never[];
|
|
1744
|
-
validator: (value: any[] | undefined) => boolean;
|
|
1745
|
-
};
|
|
1746
|
-
suffixTooltip: {
|
|
1747
|
-
type: StringConstructor;
|
|
1748
|
-
validator: (value: any) => boolean;
|
|
1749
|
-
};
|
|
1750
1644
|
okByEnter: {
|
|
1751
1645
|
type: BooleanConstructor;
|
|
1752
1646
|
validator: (value: any) => boolean;
|
|
@@ -1755,12 +1649,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1755
1649
|
type: globalThis.PropType<string | undefined>;
|
|
1756
1650
|
required: true;
|
|
1757
1651
|
};
|
|
1758
|
-
prefixValue: {
|
|
1759
|
-
type: globalThis.PropType<string>;
|
|
1760
|
-
};
|
|
1761
|
-
suffixValue: {
|
|
1762
|
-
type: globalThis.PropType<string>;
|
|
1763
|
-
};
|
|
1764
1652
|
}>> & Readonly<{
|
|
1765
1653
|
onInput?: ((value?: string | undefined) => any) | undefined;
|
|
1766
1654
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
@@ -1768,8 +1656,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1768
1656
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1769
1657
|
onClear?: (() => any) | undefined;
|
|
1770
1658
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
1771
|
-
"onUpdate:prefixValue"?: ((value: string | undefined) => any) | undefined;
|
|
1772
|
-
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
1773
1659
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
1774
1660
|
}>, {
|
|
1775
1661
|
focus: () => void;
|
|
@@ -1782,14 +1668,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1782
1668
|
clear: () => void;
|
|
1783
1669
|
ok: (value?: string | undefined) => void;
|
|
1784
1670
|
"update:modelValue": (value: string | undefined) => void;
|
|
1785
|
-
"update:prefixValue": (value: string | undefined) => void;
|
|
1786
|
-
"update:suffixValue": (value: string | undefined) => void;
|
|
1787
1671
|
}, import('vue').PublicProps, {
|
|
1672
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1788
1673
|
type: import('../../../..').LewInputType;
|
|
1789
1674
|
size: import('../../../..').LewSize;
|
|
1790
1675
|
disabled: boolean;
|
|
1791
1676
|
readonly: boolean;
|
|
1792
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1793
1677
|
minWidth: string | number;
|
|
1794
1678
|
clearable: boolean;
|
|
1795
1679
|
showPassword: boolean;
|
|
@@ -1798,8 +1682,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1798
1682
|
autoWidth: boolean;
|
|
1799
1683
|
selectByFocus: boolean;
|
|
1800
1684
|
copyable: boolean;
|
|
1801
|
-
prefixesOptions: import('../../../..').LewContextMenusOption[];
|
|
1802
|
-
suffixOptions: import('../../../..').LewContextMenusOption[];
|
|
1803
1685
|
okByEnter: boolean;
|
|
1804
1686
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
1805
1687
|
lewInputRef: HTMLInputElement;
|
|
@@ -1881,34 +1763,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1881
1763
|
type: BooleanConstructor;
|
|
1882
1764
|
validator: (value: any) => boolean;
|
|
1883
1765
|
};
|
|
1884
|
-
prefixes: {
|
|
1885
|
-
type: PropType<import('../../../..').LewInputPrefixesType>;
|
|
1886
|
-
typeValues: import('../../../..').LewInputPrefixesType[];
|
|
1887
|
-
validator: (value: any) => boolean;
|
|
1888
|
-
};
|
|
1889
|
-
prefixesOptions: {
|
|
1890
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
1891
|
-
default: () => never[];
|
|
1892
|
-
validator: (value: any[] | undefined) => boolean;
|
|
1893
|
-
};
|
|
1894
|
-
prefixesTooltip: {
|
|
1895
|
-
type: StringConstructor;
|
|
1896
|
-
validator: (value: any) => boolean;
|
|
1897
|
-
};
|
|
1898
|
-
suffix: {
|
|
1899
|
-
type: PropType<import('../../../..').LewInputSuffixType>;
|
|
1900
|
-
typeValues: import('../../../..').LewInputSuffixType[];
|
|
1901
|
-
validator: (value: any) => boolean;
|
|
1902
|
-
};
|
|
1903
|
-
suffixOptions: {
|
|
1904
|
-
type: PropType<import('../../../..').LewContextMenusOption[]>;
|
|
1905
|
-
default: () => never[];
|
|
1906
|
-
validator: (value: any[] | undefined) => boolean;
|
|
1907
|
-
};
|
|
1908
|
-
suffixTooltip: {
|
|
1909
|
-
type: StringConstructor;
|
|
1910
|
-
validator: (value: any) => boolean;
|
|
1911
|
-
};
|
|
1912
1766
|
okByEnter: {
|
|
1913
1767
|
type: BooleanConstructor;
|
|
1914
1768
|
validator: (value: any) => boolean;
|
|
@@ -1917,12 +1771,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1917
1771
|
type: globalThis.PropType<string | undefined>;
|
|
1918
1772
|
required: true;
|
|
1919
1773
|
};
|
|
1920
|
-
prefixValue: {
|
|
1921
|
-
type: globalThis.PropType<string>;
|
|
1922
|
-
};
|
|
1923
|
-
suffixValue: {
|
|
1924
|
-
type: globalThis.PropType<string>;
|
|
1925
|
-
};
|
|
1926
1774
|
}>> & Readonly<{
|
|
1927
1775
|
onInput?: ((value?: string | undefined) => any) | undefined;
|
|
1928
1776
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
@@ -1930,18 +1778,16 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1930
1778
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1931
1779
|
onClear?: (() => any) | undefined;
|
|
1932
1780
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
1933
|
-
"onUpdate:prefixValue"?: ((value: string | undefined) => any) | undefined;
|
|
1934
|
-
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
1935
1781
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
1936
1782
|
}>, {
|
|
1937
1783
|
focus: () => void;
|
|
1938
1784
|
blur: () => void;
|
|
1939
1785
|
}, {}, {}, {}, {
|
|
1786
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1940
1787
|
type: import('../../../..').LewInputType;
|
|
1941
1788
|
size: import('../../../..').LewSize;
|
|
1942
1789
|
disabled: boolean;
|
|
1943
1790
|
readonly: boolean;
|
|
1944
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
1945
1791
|
minWidth: string | number;
|
|
1946
1792
|
clearable: boolean;
|
|
1947
1793
|
showPassword: boolean;
|
|
@@ -1950,8 +1796,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1950
1796
|
autoWidth: boolean;
|
|
1951
1797
|
selectByFocus: boolean;
|
|
1952
1798
|
copyable: boolean;
|
|
1953
|
-
prefixesOptions: import('../../../..').LewContextMenusOption[];
|
|
1954
|
-
suffixOptions: import('../../../..').LewContextMenusOption[];
|
|
1955
1799
|
okByEnter: boolean;
|
|
1956
1800
|
}> | null;
|
|
1957
1801
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -2035,12 +1879,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
2035
1879
|
};
|
|
2036
1880
|
}, {}, {}, {}, {
|
|
2037
1881
|
loading: boolean;
|
|
1882
|
+
width: string;
|
|
2038
1883
|
size: string;
|
|
2039
1884
|
disabled: boolean;
|
|
2040
1885
|
placeholder: string;
|
|
2041
1886
|
focus: boolean;
|
|
2042
1887
|
readonly: boolean;
|
|
2043
|
-
width: string;
|
|
2044
1888
|
clearable: boolean;
|
|
2045
1889
|
multiple: boolean;
|
|
2046
1890
|
searchable: boolean;
|
|
@@ -2351,7 +2195,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
2351
2195
|
onLoadStart?: (() => any) | undefined;
|
|
2352
2196
|
onLoadEnd?: ((text: string) => any) | undefined;
|
|
2353
2197
|
"onUpdate:expandKeys"?: ((value: string[]) => any) | undefined;
|
|
2354
|
-
}>, "
|
|
2198
|
+
}>, "reset" | "search" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
|
|
2355
2199
|
search: any;
|
|
2356
2200
|
reset: () => void;
|
|
2357
2201
|
getTree: () => {
|
|
@@ -182,19 +182,19 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
182
182
|
$props: Partial<{
|
|
183
183
|
x: import('../../../..').LewXAlignment;
|
|
184
184
|
y: import('../../../..').LewYAlignment;
|
|
185
|
-
direction: import('../../../..').LewDirection;
|
|
186
185
|
width: string;
|
|
186
|
+
direction: import('../../../..').LewDirection;
|
|
187
187
|
gap: string;
|
|
188
188
|
wrap: boolean;
|
|
189
189
|
}> & Omit<{
|
|
190
190
|
readonly x: import('../../../..').LewXAlignment;
|
|
191
191
|
readonly y: import('../../../..').LewYAlignment;
|
|
192
|
-
readonly direction: import('../../../..').LewDirection;
|
|
193
192
|
readonly width: string;
|
|
193
|
+
readonly direction: import('../../../..').LewDirection;
|
|
194
194
|
readonly gap: string;
|
|
195
195
|
readonly wrap: boolean;
|
|
196
196
|
readonly mode?: import('../../../..').FlexMode | undefined;
|
|
197
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "x" | "y" | "
|
|
197
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "x" | "y" | "width" | "direction" | "gap" | "wrap">;
|
|
198
198
|
$attrs: {
|
|
199
199
|
[x: string]: unknown;
|
|
200
200
|
};
|
|
@@ -249,8 +249,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
249
249
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
250
250
|
x: import('../../../..').LewXAlignment;
|
|
251
251
|
y: import('../../../..').LewYAlignment;
|
|
252
|
-
direction: import('../../../..').LewDirection;
|
|
253
252
|
width: string;
|
|
253
|
+
direction: import('../../../..').LewDirection;
|
|
254
254
|
gap: string;
|
|
255
255
|
wrap: boolean;
|
|
256
256
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -276,8 +276,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
276
276
|
} & Readonly<{
|
|
277
277
|
x: import('../../../..').LewXAlignment;
|
|
278
278
|
y: import('../../../..').LewYAlignment;
|
|
279
|
-
direction: import('../../../..').LewDirection;
|
|
280
279
|
width: string;
|
|
280
|
+
direction: import('../../../..').LewDirection;
|
|
281
281
|
gap: string;
|
|
282
282
|
wrap: boolean;
|
|
283
283
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -317,7 +317,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
317
317
|
default: string;
|
|
318
318
|
validator: (value: string | number | undefined) => boolean;
|
|
319
319
|
};
|
|
320
|
-
}>> & Readonly<{}>, "x" | "y" | "
|
|
320
|
+
}>> & Readonly<{}>, "x" | "y" | "width" | "direction" | "gap" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
321
321
|
$slots: {
|
|
322
322
|
default?(_: {}): any;
|
|
323
323
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LewButtonProps, buttonProps } from './src/props';
|
|
1
|
+
import { buttonEmits } from './src/emits';
|
|
3
2
|
import { default as LewButton } from './src/LewButton.vue';
|
|
3
|
+
import { buttonProps } from './src/props';
|
|
4
4
|
export { LewButton };
|
|
5
|
-
export type { LewButtonEmits
|
|
5
|
+
export type { LewButtonEmits } from './src/emits';
|
|
6
|
+
export type { LewButtonProps, LewButtonRequestFn } from './src/props';
|
|
6
7
|
export { buttonEmits, buttonProps };
|
|
7
8
|
export default LewButton;
|
|
@@ -60,7 +60,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
60
60
|
validator: (value: any) => boolean;
|
|
61
61
|
};
|
|
62
62
|
request: {
|
|
63
|
-
type: PropType<()
|
|
63
|
+
type: PropType<import('./props').LewButtonRequestFn>;
|
|
64
64
|
validator: (value: any) => boolean;
|
|
65
65
|
};
|
|
66
66
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -118,7 +118,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
118
118
|
validator: (value: any) => boolean;
|
|
119
119
|
};
|
|
120
120
|
request: {
|
|
121
|
-
type: PropType<()
|
|
121
|
+
type: PropType<import('./props').LewButtonRequestFn>;
|
|
122
122
|
validator: (value: any) => boolean;
|
|
123
123
|
};
|
|
124
124
|
}>> & Readonly<{
|
|
@@ -126,12 +126,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
126
126
|
}>, {
|
|
127
127
|
loading: boolean;
|
|
128
128
|
type: import('../../../..').LewButtonType;
|
|
129
|
-
color: import('../../../..').LewColor;
|
|
130
129
|
size: import('../../../..').LewButtonSize;
|
|
131
|
-
round: boolean;
|
|
132
|
-
disabled: boolean;
|
|
133
130
|
singleIcon: boolean;
|
|
131
|
+
color: import('../../../..').LewColor;
|
|
132
|
+
round: boolean;
|
|
134
133
|
dashed: boolean;
|
|
134
|
+
disabled: boolean;
|
|
135
135
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
136
136
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
137
137
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { LewButtonSize, LewButtonType, LewColor } from '../../../..';
|
|
3
3
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
4
|
+
/** 点击时执行,支持同步/异步;部分场景(如 Dialog/Popok 底部)可读返回值 `false`。 */
|
|
5
|
+
export type LewButtonRequestFn = () => void | boolean | Promise<void | boolean>;
|
|
4
6
|
export declare const buttonProps: {
|
|
5
7
|
text: {
|
|
6
8
|
type: StringConstructor;
|
|
@@ -54,7 +56,7 @@ export declare const buttonProps: {
|
|
|
54
56
|
validator: (value: any) => boolean;
|
|
55
57
|
};
|
|
56
58
|
request: {
|
|
57
|
-
type: PropType<
|
|
59
|
+
type: PropType<LewButtonRequestFn>;
|
|
58
60
|
validator: (value: any) => boolean;
|
|
59
61
|
};
|
|
60
62
|
};
|
|
@@ -84,8 +84,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
84
84
|
}>> & Readonly<{}>, {
|
|
85
85
|
x: import('../../../..').LewXAlignment;
|
|
86
86
|
y: import('../../../..').LewYAlignment;
|
|
87
|
-
direction: import('../../../..').LewDirection;
|
|
88
87
|
width: string;
|
|
88
|
+
direction: import('../../../..').LewDirection;
|
|
89
89
|
gap: string;
|
|
90
90
|
wrap: boolean;
|
|
91
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -105,9 +105,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
105
105
|
};
|
|
106
106
|
}>> & Readonly<{}>, {
|
|
107
107
|
loading: boolean;
|
|
108
|
+
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
108
109
|
lazy: boolean;
|
|
109
110
|
title: string;
|
|
110
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
111
111
|
height: import("csstype").Property.Height<0 | (string & {})>;
|
|
112
112
|
objectFit: import('../../../..').LewImageObjectFit;
|
|
113
113
|
objectPosition: import('../../../..').LewImageObjectPosition;
|
|
@@ -145,13 +145,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
145
145
|
onFocus?: (() => any) | undefined;
|
|
146
146
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
147
147
|
}>, {
|
|
148
|
-
editable: boolean;
|
|
149
148
|
type: import('../../../..').LewTagType;
|
|
150
|
-
color: string;
|
|
151
149
|
size: import('../../../..').LewSize;
|
|
150
|
+
color: string;
|
|
152
151
|
round: boolean;
|
|
153
|
-
oversize: boolean;
|
|
154
152
|
disabled: boolean;
|
|
153
|
+
editable: boolean;
|
|
154
|
+
oversize: boolean;
|
|
155
155
|
closeable: boolean;
|
|
156
156
|
close: () => Promise<boolean>;
|
|
157
157
|
placeholder: string;
|
package/dist/global.d.ts
CHANGED