@dazhicheng/ui 1.4.22 → 1.5.0
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/tt-drawer/index.d.ts +3703 -0
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +2121 -0
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.d.ts +94 -0
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.d.ts +27 -0
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +10 -0
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +9 -0
- package/dist/components/tt-drawer/src/index.d.ts +10 -0
- package/dist/components/tt-drawer/src/props.d.ts +99 -0
- package/dist/components/tt-drawer/src/typing.d.ts +154 -0
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +87 -0
- package/dist/components/tt-form/src/config.d.ts +2 -2
- package/dist/components/tt-form/src/types.d.ts +6 -5
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +1466 -2
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +734 -2
- package/dist/components/tt-modal/index.d.ts +112 -111
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +57 -57
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts +5 -5
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +5 -5
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +22 -20
- package/dist/components/tt-modal/src/index.d.ts +5 -6
- package/dist/components/tt-modal/src/typing.d.ts +5 -5
- package/dist/components/tt-select/index.d.ts +2 -3
- package/dist/components/tt-select/src/Select.vue.d.ts +71 -71
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +8 -8
- package/dist/components/tt-select/src/components/Table.vue.d.ts +12 -12
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +8 -8
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +3 -3
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +7 -7
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +16 -16
- package/dist/components/tt-select/src/props.d.ts +14 -14
- package/dist/components/tt-select/src/types/index.d.ts +15 -15
- package/dist/components/tt-table/src/Table.vue.d.ts +12 -12
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8633 -7906
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/components/tt-form/src/components/{formActions.vue.d.ts → FormActions.vue.d.ts} +0 -0
- /package/dist/components/tt-form/src/{useForm.vue.d.ts → index.vue.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TipConfig } from '../../../directives/disabled-tip';
|
|
2
2
|
import { PropType, nextTick } from 'vue';
|
|
3
|
-
import { ModalMethods,
|
|
3
|
+
import { ModalMethods, TtModalExtendedModalApi } from './typing';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
6
|
slots: Readonly<{
|
|
@@ -32,19 +32,19 @@ declare function __VLS_template(): {
|
|
|
32
32
|
showFooter: boolean;
|
|
33
33
|
draggable: boolean;
|
|
34
34
|
testId: any;
|
|
35
|
+
showOkBtn: boolean;
|
|
36
|
+
showCancelBtn: boolean;
|
|
35
37
|
cancelText: string;
|
|
36
38
|
okText: string;
|
|
37
|
-
resizer: boolean;
|
|
38
|
-
showCancelBtn: boolean;
|
|
39
|
-
showOkBtn: boolean;
|
|
40
39
|
confirmLoading: boolean;
|
|
41
|
-
cancelLoading: boolean;
|
|
42
40
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
43
41
|
disabledTip?: TipConfig | TipConfig[];
|
|
44
42
|
};
|
|
45
43
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
46
|
-
isBottom: boolean;
|
|
47
44
|
modal: boolean;
|
|
45
|
+
resizer: boolean;
|
|
46
|
+
cancelLoading: boolean;
|
|
47
|
+
isBottom: boolean;
|
|
48
48
|
}> & Omit<{
|
|
49
49
|
readonly title: any;
|
|
50
50
|
readonly fullscreen: boolean;
|
|
@@ -57,25 +57,25 @@ declare function __VLS_template(): {
|
|
|
57
57
|
readonly showFooter: boolean;
|
|
58
58
|
readonly draggable: boolean;
|
|
59
59
|
readonly testId: any;
|
|
60
|
+
readonly showOkBtn: boolean;
|
|
61
|
+
readonly showCancelBtn: boolean;
|
|
60
62
|
readonly cancelText: string;
|
|
61
63
|
readonly okText: string;
|
|
62
|
-
readonly resizer: boolean;
|
|
63
|
-
readonly showCancelBtn: boolean;
|
|
64
|
-
readonly showOkBtn: boolean;
|
|
65
64
|
readonly confirmLoading: boolean;
|
|
66
|
-
readonly cancelLoading: boolean;
|
|
67
65
|
readonly okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
68
66
|
disabledTip?: TipConfig | TipConfig[];
|
|
69
67
|
};
|
|
70
68
|
readonly cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
71
|
-
readonly isBottom: boolean;
|
|
72
69
|
readonly modal: boolean;
|
|
70
|
+
readonly resizer: boolean;
|
|
71
|
+
readonly cancelLoading: boolean;
|
|
72
|
+
readonly isBottom: boolean;
|
|
73
73
|
readonly top?: string | undefined;
|
|
74
74
|
readonly width?: string | number | undefined;
|
|
75
75
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
76
76
|
readonly loadingTip?: string | undefined;
|
|
77
77
|
readonly "onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
78
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "
|
|
78
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "modal" | "resizer" | "cancelLoading" | "isBottom">;
|
|
79
79
|
$attrs: {
|
|
80
80
|
[x: string]: unknown;
|
|
81
81
|
};
|
|
@@ -196,19 +196,19 @@ declare function __VLS_template(): {
|
|
|
196
196
|
showFooter: boolean;
|
|
197
197
|
draggable: boolean;
|
|
198
198
|
testId: any;
|
|
199
|
+
showOkBtn: boolean;
|
|
200
|
+
showCancelBtn: boolean;
|
|
199
201
|
cancelText: string;
|
|
200
202
|
okText: string;
|
|
201
|
-
resizer: boolean;
|
|
202
|
-
showCancelBtn: boolean;
|
|
203
|
-
showOkBtn: boolean;
|
|
204
203
|
confirmLoading: boolean;
|
|
205
|
-
cancelLoading: boolean;
|
|
206
204
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
207
205
|
disabledTip?: TipConfig | TipConfig[];
|
|
208
206
|
};
|
|
209
207
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
210
|
-
isBottom: boolean;
|
|
211
208
|
modal: boolean;
|
|
209
|
+
resizer: boolean;
|
|
210
|
+
cancelLoading: boolean;
|
|
211
|
+
isBottom: boolean;
|
|
212
212
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
213
213
|
beforeCreate?: (() => void) | (() => void)[];
|
|
214
214
|
created?: (() => void) | (() => void)[];
|
|
@@ -241,19 +241,19 @@ declare function __VLS_template(): {
|
|
|
241
241
|
showFooter: boolean;
|
|
242
242
|
draggable: boolean;
|
|
243
243
|
testId: any;
|
|
244
|
+
showOkBtn: boolean;
|
|
245
|
+
showCancelBtn: boolean;
|
|
244
246
|
cancelText: string;
|
|
245
247
|
okText: string;
|
|
246
|
-
resizer: boolean;
|
|
247
|
-
showCancelBtn: boolean;
|
|
248
|
-
showOkBtn: boolean;
|
|
249
248
|
confirmLoading: boolean;
|
|
250
|
-
cancelLoading: boolean;
|
|
251
249
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
252
250
|
disabledTip?: TipConfig | TipConfig[];
|
|
253
251
|
};
|
|
254
252
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
255
|
-
isBottom: boolean;
|
|
256
253
|
modal: boolean;
|
|
254
|
+
resizer: boolean;
|
|
255
|
+
cancelLoading: boolean;
|
|
256
|
+
isBottom: boolean;
|
|
257
257
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
258
258
|
testId: any;
|
|
259
259
|
visible: {
|
|
@@ -341,7 +341,7 @@ declare function __VLS_template(): {
|
|
|
341
341
|
};
|
|
342
342
|
}>> & Readonly<{
|
|
343
343
|
"onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
344
|
-
}>, "onScrollBottom" | "elm" | ("title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "
|
|
344
|
+
}>, "onScrollBottom" | "elm" | ("title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "modal" | "resizer" | "cancelLoading" | "isBottom")> & import('vue').ShallowUnwrapRef<{
|
|
345
345
|
onScrollBottom: () => void;
|
|
346
346
|
elm: import('vue').Ref<any, any>;
|
|
347
347
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -356,7 +356,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
356
356
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
357
357
|
/** modalApi */
|
|
358
358
|
modalApi: {
|
|
359
|
-
type: PropType<
|
|
359
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
360
360
|
default: undefined;
|
|
361
361
|
};
|
|
362
362
|
testId: any;
|
|
@@ -483,7 +483,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
483
483
|
showClose: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
484
484
|
ariaLevel: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
485
485
|
}>, {
|
|
486
|
-
modalApi:
|
|
486
|
+
modalApi: TtModalExtendedModalApi;
|
|
487
487
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
488
488
|
"update:visible": (args_0: boolean) => any;
|
|
489
489
|
"visible-change": (args_0: boolean) => any;
|
|
@@ -491,7 +491,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
491
491
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
492
492
|
/** modalApi */
|
|
493
493
|
modalApi: {
|
|
494
|
-
type: PropType<
|
|
494
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
495
495
|
default: undefined;
|
|
496
496
|
};
|
|
497
497
|
testId: any;
|
|
@@ -640,31 +640,31 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
640
640
|
overflow: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
641
641
|
draggable: boolean;
|
|
642
642
|
testId: any;
|
|
643
|
+
destroyOnClose: boolean;
|
|
644
|
+
showOkBtn: boolean;
|
|
645
|
+
showCancelBtn: boolean;
|
|
643
646
|
cancelText: string;
|
|
644
647
|
okText: string;
|
|
645
|
-
resizer: boolean;
|
|
646
|
-
showCancelBtn: boolean;
|
|
647
|
-
showOkBtn: boolean;
|
|
648
648
|
confirmLoading: boolean;
|
|
649
|
-
cancelLoading: boolean;
|
|
650
649
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
651
650
|
disabledTip?: TipConfig | TipConfig[];
|
|
652
651
|
};
|
|
653
652
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
654
|
-
|
|
655
|
-
modal: boolean;
|
|
653
|
+
headerAriaLevel: string;
|
|
656
654
|
appendToBody: boolean;
|
|
657
|
-
destroyOnClose: boolean;
|
|
658
655
|
closeOnClickModal: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
659
656
|
lockScroll: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
657
|
+
modal: boolean;
|
|
660
658
|
modalPenetrable: boolean;
|
|
661
659
|
openDelay: number;
|
|
662
660
|
closeDelay: number;
|
|
663
661
|
trapFocus: boolean;
|
|
664
|
-
headerAriaLevel: string;
|
|
665
662
|
alignCenter: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
666
663
|
ariaLevel: string;
|
|
667
|
-
|
|
664
|
+
resizer: boolean;
|
|
665
|
+
cancelLoading: boolean;
|
|
666
|
+
isBottom: boolean;
|
|
667
|
+
modalApi: TtModalExtendedModalApi;
|
|
668
668
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
669
669
|
modalWrapperRef: ({
|
|
670
670
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -681,19 +681,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
681
681
|
showFooter: boolean;
|
|
682
682
|
draggable: boolean;
|
|
683
683
|
testId: any;
|
|
684
|
+
showOkBtn: boolean;
|
|
685
|
+
showCancelBtn: boolean;
|
|
684
686
|
cancelText: string;
|
|
685
687
|
okText: string;
|
|
686
|
-
resizer: boolean;
|
|
687
|
-
showCancelBtn: boolean;
|
|
688
|
-
showOkBtn: boolean;
|
|
689
688
|
confirmLoading: boolean;
|
|
690
|
-
cancelLoading: boolean;
|
|
691
689
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
692
690
|
disabledTip?: TipConfig | TipConfig[];
|
|
693
691
|
};
|
|
694
692
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
695
|
-
isBottom: boolean;
|
|
696
693
|
modal: boolean;
|
|
694
|
+
resizer: boolean;
|
|
695
|
+
cancelLoading: boolean;
|
|
696
|
+
isBottom: boolean;
|
|
697
697
|
}> & Omit<{
|
|
698
698
|
readonly title: any;
|
|
699
699
|
readonly fullscreen: boolean;
|
|
@@ -706,25 +706,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
706
706
|
readonly showFooter: boolean;
|
|
707
707
|
readonly draggable: boolean;
|
|
708
708
|
readonly testId: any;
|
|
709
|
+
readonly showOkBtn: boolean;
|
|
710
|
+
readonly showCancelBtn: boolean;
|
|
709
711
|
readonly cancelText: string;
|
|
710
712
|
readonly okText: string;
|
|
711
|
-
readonly resizer: boolean;
|
|
712
|
-
readonly showCancelBtn: boolean;
|
|
713
|
-
readonly showOkBtn: boolean;
|
|
714
713
|
readonly confirmLoading: boolean;
|
|
715
|
-
readonly cancelLoading: boolean;
|
|
716
714
|
readonly okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
717
715
|
disabledTip?: TipConfig | TipConfig[];
|
|
718
716
|
};
|
|
719
717
|
readonly cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
720
|
-
readonly isBottom: boolean;
|
|
721
718
|
readonly modal: boolean;
|
|
719
|
+
readonly resizer: boolean;
|
|
720
|
+
readonly cancelLoading: boolean;
|
|
721
|
+
readonly isBottom: boolean;
|
|
722
722
|
readonly top?: string | undefined;
|
|
723
723
|
readonly width?: string | number | undefined;
|
|
724
724
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
725
725
|
readonly loadingTip?: string | undefined;
|
|
726
726
|
readonly "onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
727
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "
|
|
727
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "modal" | "resizer" | "cancelLoading" | "isBottom">;
|
|
728
728
|
$attrs: {
|
|
729
729
|
[x: string]: unknown;
|
|
730
730
|
};
|
|
@@ -845,19 +845,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
845
845
|
showFooter: boolean;
|
|
846
846
|
draggable: boolean;
|
|
847
847
|
testId: any;
|
|
848
|
+
showOkBtn: boolean;
|
|
849
|
+
showCancelBtn: boolean;
|
|
848
850
|
cancelText: string;
|
|
849
851
|
okText: string;
|
|
850
|
-
resizer: boolean;
|
|
851
|
-
showCancelBtn: boolean;
|
|
852
|
-
showOkBtn: boolean;
|
|
853
852
|
confirmLoading: boolean;
|
|
854
|
-
cancelLoading: boolean;
|
|
855
853
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
856
854
|
disabledTip?: TipConfig | TipConfig[];
|
|
857
855
|
};
|
|
858
856
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
859
|
-
isBottom: boolean;
|
|
860
857
|
modal: boolean;
|
|
858
|
+
resizer: boolean;
|
|
859
|
+
cancelLoading: boolean;
|
|
860
|
+
isBottom: boolean;
|
|
861
861
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
862
862
|
beforeCreate?: (() => void) | (() => void)[];
|
|
863
863
|
created?: (() => void) | (() => void)[];
|
|
@@ -890,19 +890,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
890
890
|
showFooter: boolean;
|
|
891
891
|
draggable: boolean;
|
|
892
892
|
testId: any;
|
|
893
|
+
showOkBtn: boolean;
|
|
894
|
+
showCancelBtn: boolean;
|
|
893
895
|
cancelText: string;
|
|
894
896
|
okText: string;
|
|
895
|
-
resizer: boolean;
|
|
896
|
-
showCancelBtn: boolean;
|
|
897
|
-
showOkBtn: boolean;
|
|
898
897
|
confirmLoading: boolean;
|
|
899
|
-
cancelLoading: boolean;
|
|
900
898
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
901
899
|
disabledTip?: TipConfig | TipConfig[];
|
|
902
900
|
};
|
|
903
901
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
904
|
-
isBottom: boolean;
|
|
905
902
|
modal: boolean;
|
|
903
|
+
resizer: boolean;
|
|
904
|
+
cancelLoading: boolean;
|
|
905
|
+
isBottom: boolean;
|
|
906
906
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
907
907
|
testId: any;
|
|
908
908
|
visible: {
|
|
@@ -990,7 +990,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
990
990
|
};
|
|
991
991
|
}>> & Readonly<{
|
|
992
992
|
"onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
993
|
-
}>, "onScrollBottom" | "elm" | ("title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "
|
|
993
|
+
}>, "onScrollBottom" | "elm" | ("title" | "fullscreen" | "visible" | "size" | "height" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "draggable" | "testId" | "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "modal" | "resizer" | "cancelLoading" | "isBottom")> & import('vue').ShallowUnwrapRef<{
|
|
994
994
|
onScrollBottom: () => void;
|
|
995
995
|
elm: import('vue').Ref<any, any>;
|
|
996
996
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -100,7 +100,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
100
100
|
type: BooleanConstructor;
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
|
-
}, "
|
|
103
|
+
}, "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "cancelLoading">>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
104
|
cancel: (e: Event) => any;
|
|
105
105
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<Pick<{
|
|
106
106
|
testId: any;
|
|
@@ -187,19 +187,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
187
187
|
type: BooleanConstructor;
|
|
188
188
|
default: boolean;
|
|
189
189
|
};
|
|
190
|
-
}, "
|
|
190
|
+
}, "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "cancelLoading">>> & Readonly<{
|
|
191
191
|
onCancel?: ((e: Event) => any) | undefined;
|
|
192
192
|
}>, {
|
|
193
|
+
showOkBtn: boolean;
|
|
194
|
+
showCancelBtn: boolean;
|
|
193
195
|
cancelText: string;
|
|
194
196
|
okText: string;
|
|
195
|
-
showCancelBtn: boolean;
|
|
196
|
-
showOkBtn: boolean;
|
|
197
197
|
confirmLoading: boolean;
|
|
198
|
-
cancelLoading: boolean;
|
|
199
198
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
200
199
|
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
201
200
|
};
|
|
202
201
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
202
|
+
cancelLoading: boolean;
|
|
203
203
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
204
204
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
205
205
|
export default _default;
|
|
@@ -199,19 +199,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
199
199
|
showFooter: boolean;
|
|
200
200
|
draggable: boolean;
|
|
201
201
|
testId: any;
|
|
202
|
+
showOkBtn: boolean;
|
|
203
|
+
showCancelBtn: boolean;
|
|
202
204
|
cancelText: string;
|
|
203
205
|
okText: string;
|
|
204
|
-
resizer: boolean;
|
|
205
|
-
showCancelBtn: boolean;
|
|
206
|
-
showOkBtn: boolean;
|
|
207
206
|
confirmLoading: boolean;
|
|
208
|
-
cancelLoading: boolean;
|
|
209
207
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
210
208
|
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
211
209
|
};
|
|
212
210
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
213
|
-
isBottom: boolean;
|
|
214
211
|
modal: boolean;
|
|
212
|
+
resizer: boolean;
|
|
213
|
+
cancelLoading: boolean;
|
|
214
|
+
isBottom: boolean;
|
|
215
215
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
216
216
|
wrapperRef: HTMLDivElement;
|
|
217
217
|
}, HTMLDivElement>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModalApiOptions, ModalProps, TtModalExtendedModalApi } from '../typing';
|
|
2
|
+
import { App, Component } from 'vue';
|
|
2
3
|
export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
|
|
3
4
|
/**
|
|
4
5
|
* modal 可选hooks
|
|
@@ -22,31 +23,31 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
22
23
|
overflow: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
23
24
|
draggable: boolean;
|
|
24
25
|
testId: any;
|
|
26
|
+
destroyOnClose: boolean;
|
|
27
|
+
showOkBtn: boolean;
|
|
28
|
+
showCancelBtn: boolean;
|
|
25
29
|
cancelText: string;
|
|
26
30
|
okText: string;
|
|
27
|
-
resizer: boolean;
|
|
28
|
-
showCancelBtn: boolean;
|
|
29
|
-
showOkBtn: boolean;
|
|
30
31
|
confirmLoading: boolean;
|
|
31
|
-
cancelLoading: boolean;
|
|
32
32
|
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
33
33
|
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
34
34
|
};
|
|
35
35
|
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
36
|
-
|
|
37
|
-
modal: boolean;
|
|
36
|
+
headerAriaLevel: string;
|
|
38
37
|
appendToBody: boolean;
|
|
39
|
-
destroyOnClose: boolean;
|
|
40
38
|
closeOnClickModal: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
39
|
lockScroll: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
|
+
modal: boolean;
|
|
42
41
|
modalPenetrable: boolean;
|
|
43
42
|
openDelay: number;
|
|
44
43
|
closeDelay: number;
|
|
45
44
|
trapFocus: boolean;
|
|
46
|
-
headerAriaLevel: string;
|
|
47
45
|
alignCenter: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
48
46
|
ariaLevel: string;
|
|
49
|
-
|
|
47
|
+
resizer: boolean;
|
|
48
|
+
cancelLoading: boolean;
|
|
49
|
+
isBottom: boolean;
|
|
50
|
+
modalApi: TtModalExtendedModalApi;
|
|
50
51
|
}> & Omit<{
|
|
51
52
|
readonly title: any;
|
|
52
53
|
readonly showClose: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -64,29 +65,29 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
64
65
|
readonly showFooter: boolean;
|
|
65
66
|
readonly draggable: boolean;
|
|
66
67
|
readonly testId: any;
|
|
68
|
+
readonly destroyOnClose: boolean;
|
|
69
|
+
readonly showOkBtn: boolean;
|
|
70
|
+
readonly showCancelBtn: boolean;
|
|
67
71
|
readonly cancelText: string;
|
|
68
72
|
readonly okText: string;
|
|
69
|
-
readonly resizer: boolean;
|
|
70
|
-
readonly showCancelBtn: boolean;
|
|
71
|
-
readonly showOkBtn: boolean;
|
|
72
73
|
readonly confirmLoading: boolean;
|
|
73
|
-
readonly cancelLoading: boolean;
|
|
74
74
|
readonly okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
75
75
|
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
76
76
|
};
|
|
77
77
|
readonly cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
78
|
-
readonly
|
|
79
|
-
readonly modal: boolean;
|
|
78
|
+
readonly headerAriaLevel: string;
|
|
80
79
|
readonly appendToBody: boolean;
|
|
81
|
-
readonly destroyOnClose: boolean;
|
|
82
80
|
readonly closeOnClickModal: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
81
|
readonly lockScroll: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
82
|
+
readonly modal: boolean;
|
|
84
83
|
readonly modalPenetrable: boolean;
|
|
85
84
|
readonly openDelay: number;
|
|
86
85
|
readonly closeDelay: number;
|
|
87
86
|
readonly trapFocus: boolean;
|
|
88
|
-
readonly headerAriaLevel: string;
|
|
89
87
|
readonly ariaLevel: string;
|
|
88
|
+
readonly resizer: boolean;
|
|
89
|
+
readonly cancelLoading: boolean;
|
|
90
|
+
readonly isBottom: boolean;
|
|
90
91
|
readonly zIndex?: number | undefined;
|
|
91
92
|
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
92
93
|
readonly top?: string | undefined;
|
|
@@ -94,15 +95,16 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
94
95
|
readonly width?: string | number | undefined;
|
|
95
96
|
readonly overflow?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
96
97
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
97
|
-
readonly loadingTip?: string | undefined;
|
|
98
98
|
readonly modalClass?: string | undefined;
|
|
99
99
|
readonly alignCenter?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
100
100
|
readonly closeIcon?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown> | undefined;
|
|
101
101
|
readonly headerClass?: string | undefined;
|
|
102
102
|
readonly bodyClass?: string | undefined;
|
|
103
103
|
readonly footerClass?: string | undefined;
|
|
104
|
-
readonly
|
|
104
|
+
readonly loadingTip?: string | undefined;
|
|
105
|
+
readonly modalApi?: TtModalExtendedModalApi | undefined;
|
|
105
106
|
readonly "onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
106
107
|
readonly "onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
107
108
|
readonly onRegister?: ((args_0: import('../typing').ModalMethods, args_1: string) => any) | undefined;
|
|
108
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "showClose" | "appendTo" | "fullscreen" | "visible" | "transition" | "size" | "center" | "height" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "overflow" | "draggable" | "testId" | "
|
|
109
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "showClose" | "appendTo" | "fullscreen" | "visible" | "transition" | "size" | "center" | "height" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "overflow" | "draggable" | "testId" | "destroyOnClose" | "showOkBtn" | "showCancelBtn" | "cancelText" | "okText" | "confirmLoading" | "okButtonProps" | "cancelButtonProps" | "headerAriaLevel" | "appendToBody" | "closeOnClickModal" | "lockScroll" | "modal" | "modalPenetrable" | "openDelay" | "closeDelay" | "trapFocus" | "alignCenter" | "ariaLevel" | "resizer" | "cancelLoading" | "isBottom" | "modalApi"> & Partial<import('element-plus').DialogProps> & {}, import('vue').PublicProps>, TtModalExtendedModalApi];
|
|
110
|
+
export declare function showTtModal<T extends Component>(app: App, component: T, options: ModalApiOptions): TtModalExtendedModalApi;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import { App, Component } from 'vue';
|
|
2
|
+
import { ModalApiOptions, TtModalExtendedModalApi } from './typing';
|
|
3
|
+
export type ShowModalFn = <T extends Component>(component: T, options: ModalApiOptions) => TtModalExtendedModalApi;
|
|
4
|
+
export declare function setupModal(app: App): void;
|
|
5
|
+
export declare function useShowModal(): ShowModalFn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TipConfig } from '../../../directives/disabled-tip';
|
|
2
2
|
import { ButtonProps, DialogProps } from 'element-plus';
|
|
3
3
|
import { Component, ComputedRef, Ref } from 'vue';
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
4
|
+
import { default as TtModal } from './RenderModal.vue';
|
|
5
|
+
import { default as TtModalWrapper } from './components/ModalWrapper.vue';
|
|
6
6
|
import { ModalApi } from './utils/modal-api';
|
|
7
7
|
/**
|
|
8
8
|
* @description: 弹窗对外暴露的方法
|
|
@@ -14,7 +14,7 @@ export type ModalMethods = {
|
|
|
14
14
|
scrollToBottom: () => void;
|
|
15
15
|
};
|
|
16
16
|
type RegisterFn = (modalMethods: ModalMethods, uuid: string) => void;
|
|
17
|
-
export type
|
|
17
|
+
export type TtModalRegister = [methods: ModalMethods, uuid: string];
|
|
18
18
|
export type ModalReturnMethods = {
|
|
19
19
|
/** 打开弹窗 */
|
|
20
20
|
openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
|
|
@@ -35,8 +35,8 @@ export type ModalReturnInnerMethods = {
|
|
|
35
35
|
redoModalHeight: () => void;
|
|
36
36
|
} & ModalMethods;
|
|
37
37
|
export type UseModalInnerReturnType = [RegisterFn, ModalReturnInnerMethods];
|
|
38
|
-
export type ModalProps = InstanceType<typeof
|
|
39
|
-
export type ModalWrapperProps = InstanceType<typeof
|
|
38
|
+
export type ModalProps = InstanceType<typeof TtModal>["$props"] & Partial<DialogProps>;
|
|
39
|
+
export type ModalWrapperProps = InstanceType<typeof TtModalWrapper>["$props"];
|
|
40
40
|
export type ModalRenderState = {
|
|
41
41
|
/**
|
|
42
42
|
* 是否显示
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../../utils/src';
|
|
2
2
|
import { default as TtSelectConstructor } from './src/Select.vue';
|
|
3
|
-
export type {
|
|
3
|
+
export type { TtSelectProps as TtSelectProp } from './src/props';
|
|
4
4
|
export * from './src/types';
|
|
5
|
-
/** selectV2版本 */
|
|
6
5
|
export declare const TtSelect: SFCWithInstall<typeof TtSelectConstructor>;
|
|
7
6
|
export default TtSelect;
|
|
8
|
-
export type
|
|
7
|
+
export type TtSelectInstance = InstanceType<typeof TtSelect>;
|