@dazhicheng/ui 1.6.23 → 1.6.25
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-api-component/index.d.ts +24 -35
- package/dist/components/tt-area/TtArea.d.ts +3 -0
- package/dist/components/tt-area/index.d.ts +1 -1
- package/dist/components/tt-button/components/AddButton.d.ts +3 -0
- package/dist/components/tt-button/index.d.ts +260 -589
- package/dist/components/tt-checkbox/index.d.ts +26 -35
- package/dist/components/tt-drawer/index.d.ts +306 -299
- package/dist/components/tt-drawer/src/{RenderDrawer.vue.d.ts → RenderDrawer.d.ts} +149 -146
- package/dist/components/tt-drawer/src/components/{DrawerFooter.vue.d.ts → DrawerFooter.d.ts} +18 -16
- package/dist/components/tt-drawer/src/components/{DrawerHeader.vue.d.ts → DrawerHeader.d.ts} +4 -3
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +2 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +2 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +4 -2
- package/dist/components/tt-empty/index.d.ts +10 -8
- package/dist/components/tt-form/src/components/{ExpandableArrow.vue.d.ts → ExpandableArrow.d.ts} +5 -4
- package/dist/components/tt-form/src/components/{FormActions.vue.d.ts → FormActions.d.ts} +6 -5
- package/dist/components/tt-form/src/components/{FormElInput.vue.d.ts → FormElInput.d.ts} +105 -101
- package/dist/components/tt-form/src/components/Slot.d.ts +4 -4
- package/dist/components/tt-form/src/form/{FormControl.vue.d.ts → FormControl.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormDescription.vue.d.ts → FormDescription.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormItem.vue.d.ts → FormItem.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormLabel.vue.d.ts → FormLabel.d.ts} +2 -1
- package/dist/components/tt-form/src/form/FormMessage.d.ts +3 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.d.ts +9 -0
- package/dist/components/tt-form/src/form/{FormWarnMessage.vue.d.ts → FormWarnMessage.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{RenderContent.vue.d.ts → RenderContent.d.ts} +4 -4
- package/dist/components/tt-form/src/form/index.d.ts +8 -8
- package/dist/components/tt-form/src/form/useFormField.d.ts +6 -5
- package/dist/components/tt-form/src/form-render/{FormField.vue.d.ts → FormField.d.ts} +2 -1
- package/dist/components/tt-form/src/form-render/FormFieldContact.d.ts +6 -6
- package/dist/components/tt-form/src/form-render/{FormLabel.vue.d.ts → FormLabel.d.ts} +3 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +14 -11
- package/dist/components/tt-form/src/form-render/context.d.ts +5 -4
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +7 -6
- package/dist/components/tt-form/src/form-render/expandable.d.ts +4 -3
- package/dist/components/tt-form/src/form-render/{form.vue.d.ts → form.d.ts} +9 -8
- package/dist/components/tt-form/src/form-render/index.d.ts +3 -3
- package/dist/components/tt-form/src/formApi.d.ts +3 -3
- package/dist/components/tt-form/src/group-form/{GroupForm.vue.d.ts → GroupForm.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{GroupSection.vue.d.ts → GroupSection.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{LazyFormField.vue.d.ts → LazyFormField.d.ts} +5 -3
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +7 -5
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +3 -2
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +2 -2
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +2 -2
- package/dist/components/tt-form/src/index.d.ts +217 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -1
- package/dist/components/tt-form/src/useFormContext.d.ts +2 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +61 -337
- package/dist/components/tt-icon/components/AddIcon.d.ts +8 -0
- package/dist/components/tt-icon/components/SubIcon.d.ts +8 -0
- package/dist/components/tt-icon/index.d.ts +24 -115
- package/dist/components/tt-image/index.d.ts +45 -41
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +30 -26
- package/dist/components/tt-image/tt-image.d.ts +36 -34
- package/dist/components/tt-loading/index.d.ts +5 -2
- package/dist/components/tt-loading/src/loading.d.ts +13 -0
- package/dist/components/tt-log/index.d.ts +7 -6
- package/dist/components/tt-modal/index.d.ts +371 -364
- package/dist/components/tt-modal/src/{RenderModal.vue.d.ts → RenderModal.d.ts} +118 -115
- package/dist/components/tt-modal/src/components/{ModalFooter.vue.d.ts → ModalFooter.d.ts} +26 -23
- package/dist/components/tt-modal/src/components/{ModalHeader.vue.d.ts → ModalHeader.d.ts} +4 -3
- package/dist/components/tt-modal/src/components/{ModalWrapper.vue.d.ts → ModalWrapper.d.ts} +27 -24
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +32 -29
- package/dist/components/tt-modal/src/typing.d.ts +2 -2
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +2 -1
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.d.ts +3 -2
- package/dist/components/tt-modal-form/index.d.ts +46 -2
- package/dist/components/tt-modal-form/useModalForm.d.ts +4 -3
- package/dist/components/tt-nav-anchor/index.d.ts +15 -12
- package/dist/components/tt-nav-anchor/src/{TtNavAnchor.vue.d.ts → TtNavAnchor.d.ts} +4 -4
- package/dist/components/tt-panel-select/index.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/{PanelLeft.vue.d.ts → PanelLeft.d.ts} +4 -3
- package/dist/components/tt-panel-select/src/components/{PanelMiddle.vue.d.ts → PanelMiddle.d.ts} +83 -80
- package/dist/components/tt-panel-select/src/components/{PanelRight.vue.d.ts → PanelRight.d.ts} +34 -32
- package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +7 -6
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +5 -5
- package/dist/components/tt-panel-select/src/{index.vue.d.ts → index.d.ts} +84 -80
- package/dist/components/tt-radio-group/index.d.ts +31 -50
- package/dist/components/tt-select/index.d.ts +1 -1
- package/dist/components/tt-select/src/{Select.vue.d.ts → Select.d.ts} +146 -141
- package/dist/components/tt-select/src/components/{SelectTable.vue.d.ts → SelectTable.d.ts} +40 -36
- package/dist/components/tt-select/src/components/{Table.vue.d.ts → Table.d.ts} +41 -38
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +4 -3
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +287 -279
- package/dist/components/tt-table/src/{Table.vue.d.ts → Table.d.ts} +209 -204
- package/dist/components/tt-table/src/{TableForm.vue.d.ts → TableForm.d.ts} +83 -80
- package/dist/components/tt-table/src/components/RowContext.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableAction.vue.d.ts → TableAction.d.ts} +4 -4
- package/dist/components/tt-table/src/components/TableButtons.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableColumnModal.vue.d.ts → TableColumnModal.d.ts} +5 -4
- package/dist/components/tt-table/src/components/{TableToolbarTools.vue.d.ts → TableToolbarTools.d.ts} +7 -6
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +45 -44
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +33 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +112 -110
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +2 -2
- package/dist/components/tt-table/src/props.d.ts +19 -17
- package/dist/components/tt-table/src/utils/table-api.d.ts +4 -4
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +2 -1
- package/dist/components/tt-text/index.d.ts +34 -59
- package/dist/components/tt-upload/index.d.ts +317 -311
- package/dist/components/tt-upload/src/TtUpload.d.ts +519 -0
- package/dist/components/tt-upload/src/typing.d.ts +49 -47
- package/dist/hooks/useDataPermissionOptions.js +76 -72
- package/dist/hooks/useLoading.d.ts +2 -2
- package/dist/hooks/useScreenshotOss.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
- package/dist/components/tt-api-component/index.vue.d.ts +0 -34
- package/dist/components/tt-area/TtArea.vue.d.ts +0 -2
- package/dist/components/tt-button/components/AddButton.vue.d.ts +0 -2
- package/dist/components/tt-button/index.vue.d.ts +0 -466
- package/dist/components/tt-checkbox/index.vue.d.ts +0 -28
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +0 -2
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +0 -8
- package/dist/components/tt-form/src/index.vue.d.ts +0 -216
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +0 -298
- package/dist/components/tt-icon/components/AddIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/components/SubIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/index.vue.d.ts +0 -32
- package/dist/components/tt-loading/src/loading.vue.d.ts +0 -12
- package/dist/components/tt-log/index.vue.d.ts +0 -5
- package/dist/components/tt-modal-form/index.vue.d.ts +0 -45
- package/dist/components/tt-radio-group/index.vue.d.ts +0 -33
- package/dist/components/tt-text/index.vue.d.ts +0 -50
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +0 -517
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SFCWithInstall } from '../../../../utils/src';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, TransitionProps, Component, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
|
+
import { TtModalExtendedModalApi, ModalMethods } from '.';
|
|
4
|
+
import { ButtonProps, DialogBeforeCloseFn, DialogTransition } from 'element-plus';
|
|
5
|
+
import { TipConfig } from '../../directives/disabled-tip';
|
|
6
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
7
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
8
|
+
export declare const RenderModal: SFCWithInstall<{
|
|
9
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
3
10
|
modalApi: {
|
|
4
|
-
type:
|
|
11
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
5
12
|
default: undefined;
|
|
6
13
|
};
|
|
7
14
|
testId: any;
|
|
@@ -23,7 +30,7 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
23
30
|
type: BooleanConstructor;
|
|
24
31
|
default: boolean;
|
|
25
32
|
};
|
|
26
|
-
closeFunc:
|
|
33
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
27
34
|
draggable: {
|
|
28
35
|
type: BooleanConstructor;
|
|
29
36
|
default: boolean;
|
|
@@ -61,23 +68,23 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
61
68
|
cancelLoading: {
|
|
62
69
|
type: BooleanConstructor;
|
|
63
70
|
};
|
|
64
|
-
width:
|
|
71
|
+
width: PropType<string | number>;
|
|
65
72
|
top: {
|
|
66
73
|
type: StringConstructor;
|
|
67
74
|
};
|
|
68
75
|
size: {
|
|
69
|
-
type:
|
|
76
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
70
77
|
default: string;
|
|
71
78
|
};
|
|
72
79
|
okButtonProps: {
|
|
73
|
-
type:
|
|
74
|
-
disabledTip?:
|
|
80
|
+
type: PropType<Partial< ButtonProps> & {
|
|
81
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
75
82
|
}>;
|
|
76
|
-
default: Partial<
|
|
83
|
+
default: Partial< ButtonProps>;
|
|
77
84
|
};
|
|
78
85
|
cancelButtonProps: {
|
|
79
|
-
type:
|
|
80
|
-
default: Partial<
|
|
86
|
+
type: PropType<Partial< ButtonProps>>;
|
|
87
|
+
default: Partial< ButtonProps>;
|
|
81
88
|
};
|
|
82
89
|
isBottom: {
|
|
83
90
|
type: BooleanConstructor;
|
|
@@ -88,73 +95,73 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
88
95
|
default: () => boolean | undefined;
|
|
89
96
|
};
|
|
90
97
|
appendToBody: BooleanConstructor;
|
|
91
|
-
appendTo:
|
|
98
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
92
99
|
beforeClose: {
|
|
93
|
-
readonly type:
|
|
100
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
94
101
|
readonly required: false;
|
|
95
102
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
103
|
__epPropKey: true;
|
|
97
104
|
};
|
|
98
105
|
destroyOnClose: BooleanConstructor;
|
|
99
|
-
closeOnClickModal:
|
|
100
|
-
closeOnPressEscape:
|
|
101
|
-
lockScroll:
|
|
106
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
107
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
108
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
102
109
|
modalPenetrable: BooleanConstructor;
|
|
103
|
-
openDelay:
|
|
104
|
-
closeDelay:
|
|
110
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
111
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
105
112
|
modelValue: BooleanConstructor;
|
|
106
113
|
modalClass: StringConstructor;
|
|
107
114
|
headerClass: StringConstructor;
|
|
108
115
|
bodyClass: StringConstructor;
|
|
109
116
|
footerClass: StringConstructor;
|
|
110
117
|
zIndex: {
|
|
111
|
-
readonly type:
|
|
118
|
+
readonly type: PropType<number>;
|
|
112
119
|
readonly required: false;
|
|
113
120
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
121
|
__epPropKey: true;
|
|
115
122
|
};
|
|
116
123
|
trapFocus: BooleanConstructor;
|
|
117
|
-
headerAriaLevel:
|
|
118
|
-
transition:
|
|
124
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
125
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
119
126
|
center: BooleanConstructor;
|
|
120
|
-
alignCenter:
|
|
127
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
121
128
|
closeIcon: {
|
|
122
|
-
readonly type:
|
|
129
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
123
130
|
readonly required: false;
|
|
124
131
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
125
132
|
__epPropKey: true;
|
|
126
133
|
};
|
|
127
|
-
overflow:
|
|
128
|
-
showClose:
|
|
129
|
-
ariaLevel:
|
|
134
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
135
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
136
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
130
137
|
}>> & Readonly<{
|
|
131
138
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
132
139
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
133
|
-
onRegister?: ((args_0:
|
|
140
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
134
141
|
}>, {
|
|
135
|
-
modalApi:
|
|
136
|
-
}, {}, {}, {},
|
|
142
|
+
modalApi: TtModalExtendedModalApi;
|
|
143
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
137
144
|
"update:visible": (args_0: boolean) => any;
|
|
138
145
|
"visible-change": (args_0: boolean) => any;
|
|
139
|
-
register: (args_0:
|
|
140
|
-
},
|
|
146
|
+
register: (args_0: ModalMethods, args_1: string) => any;
|
|
147
|
+
}, PublicProps, {
|
|
141
148
|
title: any;
|
|
142
149
|
visible: boolean;
|
|
143
|
-
appendTo:
|
|
144
|
-
transition:
|
|
150
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
151
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
145
152
|
size: "small" | "medium" | "mini";
|
|
146
153
|
center: boolean;
|
|
147
154
|
height: any;
|
|
148
155
|
draggable: boolean;
|
|
149
|
-
showClose:
|
|
156
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
150
157
|
loading: boolean;
|
|
151
158
|
modelValue: boolean;
|
|
152
|
-
closeOnPressEscape:
|
|
159
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
153
160
|
scrollTop: boolean;
|
|
154
161
|
minHeight: any;
|
|
155
162
|
showFooter: boolean;
|
|
156
163
|
fullscreen: boolean;
|
|
157
|
-
overflow:
|
|
164
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
158
165
|
testId: any;
|
|
159
166
|
modal: boolean;
|
|
160
167
|
cancelText: string;
|
|
@@ -164,26 +171,26 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
164
171
|
showOkBtn: boolean;
|
|
165
172
|
confirmLoading: boolean;
|
|
166
173
|
cancelLoading: boolean;
|
|
167
|
-
okButtonProps: Partial<
|
|
168
|
-
disabledTip?:
|
|
174
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
175
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
169
176
|
};
|
|
170
|
-
cancelButtonProps: Partial<
|
|
177
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
171
178
|
isBottom: boolean;
|
|
172
179
|
appendToBody: boolean;
|
|
173
180
|
destroyOnClose: boolean;
|
|
174
|
-
closeOnClickModal:
|
|
175
|
-
lockScroll:
|
|
181
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
182
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
176
183
|
modalPenetrable: boolean;
|
|
177
184
|
openDelay: number;
|
|
178
185
|
closeDelay: number;
|
|
179
186
|
trapFocus: boolean;
|
|
180
187
|
headerAriaLevel: string;
|
|
181
|
-
alignCenter:
|
|
188
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
182
189
|
ariaLevel: string;
|
|
183
|
-
modalApi:
|
|
184
|
-
}, true, {}, {},
|
|
190
|
+
modalApi: TtModalExtendedModalApi;
|
|
191
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
185
192
|
modalWrapperRef: ({
|
|
186
|
-
$:
|
|
193
|
+
$: ComponentInternalInstance;
|
|
187
194
|
$data: {};
|
|
188
195
|
$props: Partial<{
|
|
189
196
|
title: any;
|
|
@@ -206,10 +213,10 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
206
213
|
showOkBtn: boolean;
|
|
207
214
|
confirmLoading: boolean;
|
|
208
215
|
cancelLoading: boolean;
|
|
209
|
-
okButtonProps: Partial<
|
|
210
|
-
disabledTip?:
|
|
216
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
217
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
211
218
|
};
|
|
212
|
-
cancelButtonProps: Partial<
|
|
219
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
213
220
|
isBottom: boolean;
|
|
214
221
|
}> & Omit<{
|
|
215
222
|
readonly title: any;
|
|
@@ -232,17 +239,17 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
232
239
|
readonly showOkBtn: boolean;
|
|
233
240
|
readonly confirmLoading: boolean;
|
|
234
241
|
readonly cancelLoading: boolean;
|
|
235
|
-
readonly okButtonProps: Partial<
|
|
236
|
-
disabledTip?:
|
|
242
|
+
readonly okButtonProps: Partial< ButtonProps> & {
|
|
243
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
237
244
|
};
|
|
238
|
-
readonly cancelButtonProps: Partial<
|
|
245
|
+
readonly cancelButtonProps: Partial< ButtonProps>;
|
|
239
246
|
readonly isBottom: boolean;
|
|
240
247
|
readonly top?: string | undefined;
|
|
241
248
|
readonly width?: string | number | undefined;
|
|
242
249
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
243
250
|
readonly loadingTip?: string | undefined;
|
|
244
251
|
readonly "onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
245
|
-
} &
|
|
252
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom">;
|
|
246
253
|
$attrs: {
|
|
247
254
|
[x: string]: unknown;
|
|
248
255
|
};
|
|
@@ -252,14 +259,14 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
252
259
|
wrapperRef: HTMLDivElement;
|
|
253
260
|
};
|
|
254
261
|
$slots: Readonly<{
|
|
255
|
-
[name: string]:
|
|
262
|
+
[name: string]: Slot<any> | undefined;
|
|
256
263
|
}>;
|
|
257
|
-
$root:
|
|
258
|
-
$parent:
|
|
264
|
+
$root: ComponentPublicInstance | null;
|
|
265
|
+
$parent: ComponentPublicInstance | null;
|
|
259
266
|
$host: Element | null;
|
|
260
267
|
$emit: (event: "is-scroll", ...args: any[]) => void;
|
|
261
268
|
$el: HTMLDivElement;
|
|
262
|
-
$options:
|
|
269
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
263
270
|
contained: {
|
|
264
271
|
type: BooleanConstructor;
|
|
265
272
|
default: boolean;
|
|
@@ -283,7 +290,7 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
283
290
|
type: BooleanConstructor;
|
|
284
291
|
default: boolean;
|
|
285
292
|
};
|
|
286
|
-
closeFunc:
|
|
293
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
287
294
|
draggable: {
|
|
288
295
|
type: BooleanConstructor;
|
|
289
296
|
default: boolean;
|
|
@@ -321,23 +328,23 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
321
328
|
cancelLoading: {
|
|
322
329
|
type: BooleanConstructor;
|
|
323
330
|
};
|
|
324
|
-
width:
|
|
331
|
+
width: PropType<string | number>;
|
|
325
332
|
top: {
|
|
326
333
|
type: StringConstructor;
|
|
327
334
|
};
|
|
328
335
|
size: {
|
|
329
|
-
type:
|
|
336
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
330
337
|
default: string;
|
|
331
338
|
};
|
|
332
339
|
okButtonProps: {
|
|
333
|
-
type:
|
|
334
|
-
disabledTip?:
|
|
340
|
+
type: PropType<Partial< ButtonProps> & {
|
|
341
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
335
342
|
}>;
|
|
336
|
-
default: Partial<
|
|
343
|
+
default: Partial< ButtonProps>;
|
|
337
344
|
};
|
|
338
345
|
cancelButtonProps: {
|
|
339
|
-
type:
|
|
340
|
-
default: Partial<
|
|
346
|
+
type: PropType<Partial< ButtonProps>>;
|
|
347
|
+
default: Partial< ButtonProps>;
|
|
341
348
|
};
|
|
342
349
|
isBottom: {
|
|
343
350
|
type: BooleanConstructor;
|
|
@@ -352,8 +359,8 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
352
359
|
}>, {
|
|
353
360
|
onScrollBottom: () => void;
|
|
354
361
|
setModalHeight: () => void;
|
|
355
|
-
elm:
|
|
356
|
-
}, {}, {}, {},
|
|
362
|
+
elm: Ref<any, any>;
|
|
363
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
357
364
|
"is-scroll": (...args: any[]) => void;
|
|
358
365
|
}, string, {
|
|
359
366
|
title: any;
|
|
@@ -376,12 +383,12 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
376
383
|
showOkBtn: boolean;
|
|
377
384
|
confirmLoading: boolean;
|
|
378
385
|
cancelLoading: boolean;
|
|
379
|
-
okButtonProps: Partial<
|
|
380
|
-
disabledTip?:
|
|
386
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
387
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
381
388
|
};
|
|
382
|
-
cancelButtonProps: Partial<
|
|
389
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
383
390
|
isBottom: boolean;
|
|
384
|
-
}, {}, string, {},
|
|
391
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
385
392
|
beforeCreate?: (() => void) | (() => void)[];
|
|
386
393
|
created?: (() => void) | (() => void)[];
|
|
387
394
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -394,13 +401,13 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
394
401
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
395
402
|
destroyed?: (() => void) | (() => void)[];
|
|
396
403
|
unmounted?: (() => void) | (() => void)[];
|
|
397
|
-
renderTracked?: ((e:
|
|
398
|
-
renderTriggered?: ((e:
|
|
399
|
-
errorCaptured?: ((err: unknown, instance:
|
|
404
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
405
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
406
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
400
407
|
};
|
|
401
408
|
$forceUpdate: () => void;
|
|
402
|
-
$nextTick:
|
|
403
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R,
|
|
409
|
+
$nextTick: nextTick;
|
|
410
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
404
411
|
} & Readonly<{
|
|
405
412
|
title: any;
|
|
406
413
|
visible: boolean;
|
|
@@ -422,12 +429,12 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
422
429
|
showOkBtn: boolean;
|
|
423
430
|
confirmLoading: boolean;
|
|
424
431
|
cancelLoading: boolean;
|
|
425
|
-
okButtonProps: Partial<
|
|
426
|
-
disabledTip?:
|
|
432
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
433
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
427
434
|
};
|
|
428
|
-
cancelButtonProps: Partial<
|
|
435
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
429
436
|
isBottom: boolean;
|
|
430
|
-
}> & Omit<Readonly<
|
|
437
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
431
438
|
contained: {
|
|
432
439
|
type: BooleanConstructor;
|
|
433
440
|
default: boolean;
|
|
@@ -451,7 +458,7 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
451
458
|
type: BooleanConstructor;
|
|
452
459
|
default: boolean;
|
|
453
460
|
};
|
|
454
|
-
closeFunc:
|
|
461
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
455
462
|
draggable: {
|
|
456
463
|
type: BooleanConstructor;
|
|
457
464
|
default: boolean;
|
|
@@ -489,23 +496,23 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
489
496
|
cancelLoading: {
|
|
490
497
|
type: BooleanConstructor;
|
|
491
498
|
};
|
|
492
|
-
width:
|
|
499
|
+
width: PropType<string | number>;
|
|
493
500
|
top: {
|
|
494
501
|
type: StringConstructor;
|
|
495
502
|
};
|
|
496
503
|
size: {
|
|
497
|
-
type:
|
|
504
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
498
505
|
default: string;
|
|
499
506
|
};
|
|
500
507
|
okButtonProps: {
|
|
501
|
-
type:
|
|
502
|
-
disabledTip?:
|
|
508
|
+
type: PropType<Partial< ButtonProps> & {
|
|
509
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
503
510
|
}>;
|
|
504
|
-
default: Partial<
|
|
511
|
+
default: Partial< ButtonProps>;
|
|
505
512
|
};
|
|
506
513
|
cancelButtonProps: {
|
|
507
|
-
type:
|
|
508
|
-
default: Partial<
|
|
514
|
+
type: PropType<Partial< ButtonProps>>;
|
|
515
|
+
default: Partial< ButtonProps>;
|
|
509
516
|
};
|
|
510
517
|
isBottom: {
|
|
511
518
|
type: BooleanConstructor;
|
|
@@ -517,25 +524,25 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
517
524
|
};
|
|
518
525
|
}>> & Readonly<{
|
|
519
526
|
"onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
520
|
-
}>, "onScrollBottom" | "setModalHeight" | "elm" | ("title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom")> &
|
|
527
|
+
}>, "onScrollBottom" | "setModalHeight" | "elm" | ("title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom")> & ShallowUnwrapRef<{
|
|
521
528
|
onScrollBottom: () => void;
|
|
522
529
|
setModalHeight: () => void;
|
|
523
|
-
elm:
|
|
524
|
-
}> & {} &
|
|
530
|
+
elm: Ref<any, any>;
|
|
531
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
525
532
|
$slots: {
|
|
526
533
|
default?(_: {}): any;
|
|
527
534
|
};
|
|
528
535
|
}) | null;
|
|
529
|
-
}, HTMLDivElement,
|
|
536
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
530
537
|
P: {};
|
|
531
538
|
B: {};
|
|
532
539
|
D: {};
|
|
533
540
|
C: {};
|
|
534
541
|
M: {};
|
|
535
542
|
Defaults: {};
|
|
536
|
-
}, Readonly<
|
|
543
|
+
}, Readonly< ExtractPropTypes<{
|
|
537
544
|
modalApi: {
|
|
538
|
-
type:
|
|
545
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
539
546
|
default: undefined;
|
|
540
547
|
};
|
|
541
548
|
testId: any;
|
|
@@ -557,7 +564,7 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
557
564
|
type: BooleanConstructor;
|
|
558
565
|
default: boolean;
|
|
559
566
|
};
|
|
560
|
-
closeFunc:
|
|
567
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
561
568
|
draggable: {
|
|
562
569
|
type: BooleanConstructor;
|
|
563
570
|
default: boolean;
|
|
@@ -595,23 +602,23 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
595
602
|
cancelLoading: {
|
|
596
603
|
type: BooleanConstructor;
|
|
597
604
|
};
|
|
598
|
-
width:
|
|
605
|
+
width: PropType<string | number>;
|
|
599
606
|
top: {
|
|
600
607
|
type: StringConstructor;
|
|
601
608
|
};
|
|
602
609
|
size: {
|
|
603
|
-
type:
|
|
610
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
604
611
|
default: string;
|
|
605
612
|
};
|
|
606
613
|
okButtonProps: {
|
|
607
|
-
type:
|
|
608
|
-
disabledTip?:
|
|
614
|
+
type: PropType<Partial< ButtonProps> & {
|
|
615
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
609
616
|
}>;
|
|
610
|
-
default: Partial<
|
|
617
|
+
default: Partial< ButtonProps>;
|
|
611
618
|
};
|
|
612
619
|
cancelButtonProps: {
|
|
613
|
-
type:
|
|
614
|
-
default: Partial<
|
|
620
|
+
type: PropType<Partial< ButtonProps>>;
|
|
621
|
+
default: Partial< ButtonProps>;
|
|
615
622
|
};
|
|
616
623
|
isBottom: {
|
|
617
624
|
type: BooleanConstructor;
|
|
@@ -622,69 +629,69 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
622
629
|
default: () => boolean | undefined;
|
|
623
630
|
};
|
|
624
631
|
appendToBody: BooleanConstructor;
|
|
625
|
-
appendTo:
|
|
632
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
626
633
|
beforeClose: {
|
|
627
|
-
readonly type:
|
|
634
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
628
635
|
readonly required: false;
|
|
629
636
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
630
637
|
__epPropKey: true;
|
|
631
638
|
};
|
|
632
639
|
destroyOnClose: BooleanConstructor;
|
|
633
|
-
closeOnClickModal:
|
|
634
|
-
closeOnPressEscape:
|
|
635
|
-
lockScroll:
|
|
640
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
641
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
642
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
636
643
|
modalPenetrable: BooleanConstructor;
|
|
637
|
-
openDelay:
|
|
638
|
-
closeDelay:
|
|
644
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
645
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
639
646
|
modelValue: BooleanConstructor;
|
|
640
647
|
modalClass: StringConstructor;
|
|
641
648
|
headerClass: StringConstructor;
|
|
642
649
|
bodyClass: StringConstructor;
|
|
643
650
|
footerClass: StringConstructor;
|
|
644
651
|
zIndex: {
|
|
645
|
-
readonly type:
|
|
652
|
+
readonly type: PropType<number>;
|
|
646
653
|
readonly required: false;
|
|
647
654
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
648
655
|
__epPropKey: true;
|
|
649
656
|
};
|
|
650
657
|
trapFocus: BooleanConstructor;
|
|
651
|
-
headerAriaLevel:
|
|
652
|
-
transition:
|
|
658
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
659
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
653
660
|
center: BooleanConstructor;
|
|
654
|
-
alignCenter:
|
|
661
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
655
662
|
closeIcon: {
|
|
656
|
-
readonly type:
|
|
663
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
657
664
|
readonly required: false;
|
|
658
665
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
659
666
|
__epPropKey: true;
|
|
660
667
|
};
|
|
661
|
-
overflow:
|
|
662
|
-
showClose:
|
|
663
|
-
ariaLevel:
|
|
668
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
669
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
670
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
664
671
|
}>> & Readonly<{
|
|
665
672
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
666
673
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
667
|
-
onRegister?: ((args_0:
|
|
674
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
668
675
|
}>, {
|
|
669
|
-
modalApi:
|
|
676
|
+
modalApi: TtModalExtendedModalApi;
|
|
670
677
|
}, {}, {}, {}, {
|
|
671
678
|
title: any;
|
|
672
679
|
visible: boolean;
|
|
673
|
-
appendTo:
|
|
674
|
-
transition:
|
|
680
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
681
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
675
682
|
size: "small" | "medium" | "mini";
|
|
676
683
|
center: boolean;
|
|
677
684
|
height: any;
|
|
678
685
|
draggable: boolean;
|
|
679
|
-
showClose:
|
|
686
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
680
687
|
loading: boolean;
|
|
681
688
|
modelValue: boolean;
|
|
682
|
-
closeOnPressEscape:
|
|
689
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
683
690
|
scrollTop: boolean;
|
|
684
691
|
minHeight: any;
|
|
685
692
|
showFooter: boolean;
|
|
686
693
|
fullscreen: boolean;
|
|
687
|
-
overflow:
|
|
694
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
688
695
|
testId: any;
|
|
689
696
|
modal: boolean;
|
|
690
697
|
cancelText: string;
|
|
@@ -694,30 +701,30 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
694
701
|
showOkBtn: boolean;
|
|
695
702
|
confirmLoading: boolean;
|
|
696
703
|
cancelLoading: boolean;
|
|
697
|
-
okButtonProps: Partial<
|
|
698
|
-
disabledTip?:
|
|
704
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
705
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
699
706
|
};
|
|
700
|
-
cancelButtonProps: Partial<
|
|
707
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
701
708
|
isBottom: boolean;
|
|
702
709
|
appendToBody: boolean;
|
|
703
710
|
destroyOnClose: boolean;
|
|
704
|
-
closeOnClickModal:
|
|
705
|
-
lockScroll:
|
|
711
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
712
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
706
713
|
modalPenetrable: boolean;
|
|
707
714
|
openDelay: number;
|
|
708
715
|
closeDelay: number;
|
|
709
716
|
trapFocus: boolean;
|
|
710
717
|
headerAriaLevel: string;
|
|
711
|
-
alignCenter:
|
|
718
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
712
719
|
ariaLevel: string;
|
|
713
|
-
modalApi:
|
|
720
|
+
modalApi: TtModalExtendedModalApi;
|
|
714
721
|
}>;
|
|
715
722
|
__isFragment?: never;
|
|
716
723
|
__isTeleport?: never;
|
|
717
724
|
__isSuspense?: never;
|
|
718
|
-
} &
|
|
725
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
719
726
|
modalApi: {
|
|
720
|
-
type:
|
|
727
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
721
728
|
default: undefined;
|
|
722
729
|
};
|
|
723
730
|
testId: any;
|
|
@@ -739,7 +746,7 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
739
746
|
type: BooleanConstructor;
|
|
740
747
|
default: boolean;
|
|
741
748
|
};
|
|
742
|
-
closeFunc:
|
|
749
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
743
750
|
draggable: {
|
|
744
751
|
type: BooleanConstructor;
|
|
745
752
|
default: boolean;
|
|
@@ -777,23 +784,23 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
777
784
|
cancelLoading: {
|
|
778
785
|
type: BooleanConstructor;
|
|
779
786
|
};
|
|
780
|
-
width:
|
|
787
|
+
width: PropType<string | number>;
|
|
781
788
|
top: {
|
|
782
789
|
type: StringConstructor;
|
|
783
790
|
};
|
|
784
791
|
size: {
|
|
785
|
-
type:
|
|
792
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
786
793
|
default: string;
|
|
787
794
|
};
|
|
788
795
|
okButtonProps: {
|
|
789
|
-
type:
|
|
790
|
-
disabledTip?:
|
|
796
|
+
type: PropType<Partial< ButtonProps> & {
|
|
797
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
791
798
|
}>;
|
|
792
|
-
default: Partial<
|
|
799
|
+
default: Partial< ButtonProps>;
|
|
793
800
|
};
|
|
794
801
|
cancelButtonProps: {
|
|
795
|
-
type:
|
|
796
|
-
default: Partial<
|
|
802
|
+
type: PropType<Partial< ButtonProps>>;
|
|
803
|
+
default: Partial< ButtonProps>;
|
|
797
804
|
};
|
|
798
805
|
isBottom: {
|
|
799
806
|
type: BooleanConstructor;
|
|
@@ -804,73 +811,73 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
804
811
|
default: () => boolean | undefined;
|
|
805
812
|
};
|
|
806
813
|
appendToBody: BooleanConstructor;
|
|
807
|
-
appendTo:
|
|
814
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
808
815
|
beforeClose: {
|
|
809
|
-
readonly type:
|
|
816
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
810
817
|
readonly required: false;
|
|
811
818
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
812
819
|
__epPropKey: true;
|
|
813
820
|
};
|
|
814
821
|
destroyOnClose: BooleanConstructor;
|
|
815
|
-
closeOnClickModal:
|
|
816
|
-
closeOnPressEscape:
|
|
817
|
-
lockScroll:
|
|
822
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
823
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
824
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
818
825
|
modalPenetrable: BooleanConstructor;
|
|
819
|
-
openDelay:
|
|
820
|
-
closeDelay:
|
|
826
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
827
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
821
828
|
modelValue: BooleanConstructor;
|
|
822
829
|
modalClass: StringConstructor;
|
|
823
830
|
headerClass: StringConstructor;
|
|
824
831
|
bodyClass: StringConstructor;
|
|
825
832
|
footerClass: StringConstructor;
|
|
826
833
|
zIndex: {
|
|
827
|
-
readonly type:
|
|
834
|
+
readonly type: PropType<number>;
|
|
828
835
|
readonly required: false;
|
|
829
836
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
830
837
|
__epPropKey: true;
|
|
831
838
|
};
|
|
832
839
|
trapFocus: BooleanConstructor;
|
|
833
|
-
headerAriaLevel:
|
|
834
|
-
transition:
|
|
840
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
841
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
835
842
|
center: BooleanConstructor;
|
|
836
|
-
alignCenter:
|
|
843
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
837
844
|
closeIcon: {
|
|
838
|
-
readonly type:
|
|
845
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
839
846
|
readonly required: false;
|
|
840
847
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
841
848
|
__epPropKey: true;
|
|
842
849
|
};
|
|
843
|
-
overflow:
|
|
844
|
-
showClose:
|
|
845
|
-
ariaLevel:
|
|
850
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
851
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
852
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
846
853
|
}>> & Readonly<{
|
|
847
854
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
848
855
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
849
|
-
onRegister?: ((args_0:
|
|
856
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
850
857
|
}>, {
|
|
851
|
-
modalApi:
|
|
852
|
-
}, {}, {}, {},
|
|
858
|
+
modalApi: TtModalExtendedModalApi;
|
|
859
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
853
860
|
"update:visible": (args_0: boolean) => any;
|
|
854
861
|
"visible-change": (args_0: boolean) => any;
|
|
855
|
-
register: (args_0:
|
|
862
|
+
register: (args_0: ModalMethods, args_1: string) => any;
|
|
856
863
|
}, string, {
|
|
857
864
|
title: any;
|
|
858
865
|
visible: boolean;
|
|
859
|
-
appendTo:
|
|
860
|
-
transition:
|
|
866
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
867
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
861
868
|
size: "small" | "medium" | "mini";
|
|
862
869
|
center: boolean;
|
|
863
870
|
height: any;
|
|
864
871
|
draggable: boolean;
|
|
865
|
-
showClose:
|
|
872
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
866
873
|
loading: boolean;
|
|
867
874
|
modelValue: boolean;
|
|
868
|
-
closeOnPressEscape:
|
|
875
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
869
876
|
scrollTop: boolean;
|
|
870
877
|
minHeight: any;
|
|
871
878
|
showFooter: boolean;
|
|
872
879
|
fullscreen: boolean;
|
|
873
|
-
overflow:
|
|
880
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
874
881
|
testId: any;
|
|
875
882
|
modal: boolean;
|
|
876
883
|
cancelText: string;
|
|
@@ -880,46 +887,46 @@ export declare const RenderModal: import('../../../../utils/src').SFCWithInstall
|
|
|
880
887
|
showOkBtn: boolean;
|
|
881
888
|
confirmLoading: boolean;
|
|
882
889
|
cancelLoading: boolean;
|
|
883
|
-
okButtonProps: Partial<
|
|
884
|
-
disabledTip?:
|
|
890
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
891
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
885
892
|
};
|
|
886
|
-
cancelButtonProps: Partial<
|
|
893
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
887
894
|
isBottom: boolean;
|
|
888
895
|
appendToBody: boolean;
|
|
889
896
|
destroyOnClose: boolean;
|
|
890
|
-
closeOnClickModal:
|
|
891
|
-
lockScroll:
|
|
897
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
898
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
892
899
|
modalPenetrable: boolean;
|
|
893
900
|
openDelay: number;
|
|
894
901
|
closeDelay: number;
|
|
895
902
|
trapFocus: boolean;
|
|
896
903
|
headerAriaLevel: string;
|
|
897
|
-
alignCenter:
|
|
904
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
898
905
|
ariaLevel: string;
|
|
899
|
-
modalApi:
|
|
900
|
-
}, {}, string, {},
|
|
906
|
+
modalApi: TtModalExtendedModalApi;
|
|
907
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
901
908
|
$slots: Readonly<{
|
|
902
|
-
[key: string]:
|
|
903
|
-
titleToolbar?:
|
|
904
|
-
header?:
|
|
905
|
-
default?:
|
|
906
|
-
footer?:
|
|
909
|
+
[key: string]: Slot | undefined;
|
|
910
|
+
titleToolbar?: Slot;
|
|
911
|
+
header?: Slot;
|
|
912
|
+
default?: Slot;
|
|
913
|
+
footer?: Slot;
|
|
907
914
|
}> & {
|
|
908
|
-
[key: string]:
|
|
909
|
-
titleToolbar?:
|
|
910
|
-
header?:
|
|
911
|
-
default?:
|
|
912
|
-
footer?:
|
|
915
|
+
[key: string]: Slot | undefined;
|
|
916
|
+
titleToolbar?: Slot;
|
|
917
|
+
header?: Slot;
|
|
918
|
+
default?: Slot;
|
|
919
|
+
footer?: Slot;
|
|
913
920
|
};
|
|
914
921
|
})> & Record<string, any>;
|
|
915
922
|
export { useModalRender, showTtModal } from './src/hooks/useModalRender';
|
|
916
923
|
export { setupModal, useShowModal } from './src';
|
|
917
924
|
export { ttModal, openTtModal, closeTtModal, closeAllTtModal, type OpenTtModalOptions, } from './src/utils/modal-service';
|
|
918
925
|
export * from './src/typing';
|
|
919
|
-
export declare const TtModal:
|
|
920
|
-
new (...args: any[]):
|
|
926
|
+
export declare const TtModal: SFCWithInstall<{
|
|
927
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
921
928
|
modalApi: {
|
|
922
|
-
type:
|
|
929
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
923
930
|
default: undefined;
|
|
924
931
|
};
|
|
925
932
|
testId: any;
|
|
@@ -941,7 +948,7 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
941
948
|
type: BooleanConstructor;
|
|
942
949
|
default: boolean;
|
|
943
950
|
};
|
|
944
|
-
closeFunc:
|
|
951
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
945
952
|
draggable: {
|
|
946
953
|
type: BooleanConstructor;
|
|
947
954
|
default: boolean;
|
|
@@ -979,23 +986,23 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
979
986
|
cancelLoading: {
|
|
980
987
|
type: BooleanConstructor;
|
|
981
988
|
};
|
|
982
|
-
width:
|
|
989
|
+
width: PropType<string | number>;
|
|
983
990
|
top: {
|
|
984
991
|
type: StringConstructor;
|
|
985
992
|
};
|
|
986
993
|
size: {
|
|
987
|
-
type:
|
|
994
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
988
995
|
default: string;
|
|
989
996
|
};
|
|
990
997
|
okButtonProps: {
|
|
991
|
-
type:
|
|
992
|
-
disabledTip?:
|
|
998
|
+
type: PropType<Partial< ButtonProps> & {
|
|
999
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
993
1000
|
}>;
|
|
994
|
-
default: Partial<
|
|
1001
|
+
default: Partial< ButtonProps>;
|
|
995
1002
|
};
|
|
996
1003
|
cancelButtonProps: {
|
|
997
|
-
type:
|
|
998
|
-
default: Partial<
|
|
1004
|
+
type: PropType<Partial< ButtonProps>>;
|
|
1005
|
+
default: Partial< ButtonProps>;
|
|
999
1006
|
};
|
|
1000
1007
|
isBottom: {
|
|
1001
1008
|
type: BooleanConstructor;
|
|
@@ -1006,73 +1013,73 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1006
1013
|
default: () => boolean | undefined;
|
|
1007
1014
|
};
|
|
1008
1015
|
appendToBody: BooleanConstructor;
|
|
1009
|
-
appendTo:
|
|
1016
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
1010
1017
|
beforeClose: {
|
|
1011
|
-
readonly type:
|
|
1018
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
1012
1019
|
readonly required: false;
|
|
1013
1020
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1014
1021
|
__epPropKey: true;
|
|
1015
1022
|
};
|
|
1016
1023
|
destroyOnClose: BooleanConstructor;
|
|
1017
|
-
closeOnClickModal:
|
|
1018
|
-
closeOnPressEscape:
|
|
1019
|
-
lockScroll:
|
|
1024
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1025
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1026
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1020
1027
|
modalPenetrable: BooleanConstructor;
|
|
1021
|
-
openDelay:
|
|
1022
|
-
closeDelay:
|
|
1028
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1029
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1023
1030
|
modelValue: BooleanConstructor;
|
|
1024
1031
|
modalClass: StringConstructor;
|
|
1025
1032
|
headerClass: StringConstructor;
|
|
1026
1033
|
bodyClass: StringConstructor;
|
|
1027
1034
|
footerClass: StringConstructor;
|
|
1028
1035
|
zIndex: {
|
|
1029
|
-
readonly type:
|
|
1036
|
+
readonly type: PropType<number>;
|
|
1030
1037
|
readonly required: false;
|
|
1031
1038
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1032
1039
|
__epPropKey: true;
|
|
1033
1040
|
};
|
|
1034
1041
|
trapFocus: BooleanConstructor;
|
|
1035
|
-
headerAriaLevel:
|
|
1036
|
-
transition:
|
|
1042
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1043
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
1037
1044
|
center: BooleanConstructor;
|
|
1038
|
-
alignCenter:
|
|
1045
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1039
1046
|
closeIcon: {
|
|
1040
|
-
readonly type:
|
|
1047
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
1041
1048
|
readonly required: false;
|
|
1042
1049
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1043
1050
|
__epPropKey: true;
|
|
1044
1051
|
};
|
|
1045
|
-
overflow:
|
|
1046
|
-
showClose:
|
|
1047
|
-
ariaLevel:
|
|
1052
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1053
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1054
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1048
1055
|
}>> & Readonly<{
|
|
1049
1056
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
1050
1057
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
1051
|
-
onRegister?: ((args_0:
|
|
1058
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
1052
1059
|
}>, {
|
|
1053
|
-
modalApi:
|
|
1054
|
-
}, {}, {}, {},
|
|
1060
|
+
modalApi: TtModalExtendedModalApi;
|
|
1061
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1055
1062
|
"update:visible": (args_0: boolean) => any;
|
|
1056
1063
|
"visible-change": (args_0: boolean) => any;
|
|
1057
|
-
register: (args_0:
|
|
1058
|
-
},
|
|
1064
|
+
register: (args_0: ModalMethods, args_1: string) => any;
|
|
1065
|
+
}, PublicProps, {
|
|
1059
1066
|
title: any;
|
|
1060
1067
|
visible: boolean;
|
|
1061
|
-
appendTo:
|
|
1062
|
-
transition:
|
|
1068
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
1069
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
1063
1070
|
size: "small" | "medium" | "mini";
|
|
1064
1071
|
center: boolean;
|
|
1065
1072
|
height: any;
|
|
1066
1073
|
draggable: boolean;
|
|
1067
|
-
showClose:
|
|
1074
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1068
1075
|
loading: boolean;
|
|
1069
1076
|
modelValue: boolean;
|
|
1070
|
-
closeOnPressEscape:
|
|
1077
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1071
1078
|
scrollTop: boolean;
|
|
1072
1079
|
minHeight: any;
|
|
1073
1080
|
showFooter: boolean;
|
|
1074
1081
|
fullscreen: boolean;
|
|
1075
|
-
overflow:
|
|
1082
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1076
1083
|
testId: any;
|
|
1077
1084
|
modal: boolean;
|
|
1078
1085
|
cancelText: string;
|
|
@@ -1082,26 +1089,26 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1082
1089
|
showOkBtn: boolean;
|
|
1083
1090
|
confirmLoading: boolean;
|
|
1084
1091
|
cancelLoading: boolean;
|
|
1085
|
-
okButtonProps: Partial<
|
|
1086
|
-
disabledTip?:
|
|
1092
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1093
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1087
1094
|
};
|
|
1088
|
-
cancelButtonProps: Partial<
|
|
1095
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1089
1096
|
isBottom: boolean;
|
|
1090
1097
|
appendToBody: boolean;
|
|
1091
1098
|
destroyOnClose: boolean;
|
|
1092
|
-
closeOnClickModal:
|
|
1093
|
-
lockScroll:
|
|
1099
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1100
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1094
1101
|
modalPenetrable: boolean;
|
|
1095
1102
|
openDelay: number;
|
|
1096
1103
|
closeDelay: number;
|
|
1097
1104
|
trapFocus: boolean;
|
|
1098
1105
|
headerAriaLevel: string;
|
|
1099
|
-
alignCenter:
|
|
1106
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1100
1107
|
ariaLevel: string;
|
|
1101
|
-
modalApi:
|
|
1102
|
-
}, true, {}, {},
|
|
1108
|
+
modalApi: TtModalExtendedModalApi;
|
|
1109
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1103
1110
|
modalWrapperRef: ({
|
|
1104
|
-
$:
|
|
1111
|
+
$: ComponentInternalInstance;
|
|
1105
1112
|
$data: {};
|
|
1106
1113
|
$props: Partial<{
|
|
1107
1114
|
title: any;
|
|
@@ -1124,10 +1131,10 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1124
1131
|
showOkBtn: boolean;
|
|
1125
1132
|
confirmLoading: boolean;
|
|
1126
1133
|
cancelLoading: boolean;
|
|
1127
|
-
okButtonProps: Partial<
|
|
1128
|
-
disabledTip?:
|
|
1134
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1135
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1129
1136
|
};
|
|
1130
|
-
cancelButtonProps: Partial<
|
|
1137
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1131
1138
|
isBottom: boolean;
|
|
1132
1139
|
}> & Omit<{
|
|
1133
1140
|
readonly title: any;
|
|
@@ -1150,17 +1157,17 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1150
1157
|
readonly showOkBtn: boolean;
|
|
1151
1158
|
readonly confirmLoading: boolean;
|
|
1152
1159
|
readonly cancelLoading: boolean;
|
|
1153
|
-
readonly okButtonProps: Partial<
|
|
1154
|
-
disabledTip?:
|
|
1160
|
+
readonly okButtonProps: Partial< ButtonProps> & {
|
|
1161
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1155
1162
|
};
|
|
1156
|
-
readonly cancelButtonProps: Partial<
|
|
1163
|
+
readonly cancelButtonProps: Partial< ButtonProps>;
|
|
1157
1164
|
readonly isBottom: boolean;
|
|
1158
1165
|
readonly top?: string | undefined;
|
|
1159
1166
|
readonly width?: string | number | undefined;
|
|
1160
1167
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
1161
1168
|
readonly loadingTip?: string | undefined;
|
|
1162
1169
|
readonly "onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
1163
|
-
} &
|
|
1170
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom">;
|
|
1164
1171
|
$attrs: {
|
|
1165
1172
|
[x: string]: unknown;
|
|
1166
1173
|
};
|
|
@@ -1170,14 +1177,14 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1170
1177
|
wrapperRef: HTMLDivElement;
|
|
1171
1178
|
};
|
|
1172
1179
|
$slots: Readonly<{
|
|
1173
|
-
[name: string]:
|
|
1180
|
+
[name: string]: Slot<any> | undefined;
|
|
1174
1181
|
}>;
|
|
1175
|
-
$root:
|
|
1176
|
-
$parent:
|
|
1182
|
+
$root: ComponentPublicInstance | null;
|
|
1183
|
+
$parent: ComponentPublicInstance | null;
|
|
1177
1184
|
$host: Element | null;
|
|
1178
1185
|
$emit: (event: "is-scroll", ...args: any[]) => void;
|
|
1179
1186
|
$el: HTMLDivElement;
|
|
1180
|
-
$options:
|
|
1187
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1181
1188
|
contained: {
|
|
1182
1189
|
type: BooleanConstructor;
|
|
1183
1190
|
default: boolean;
|
|
@@ -1201,7 +1208,7 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1201
1208
|
type: BooleanConstructor;
|
|
1202
1209
|
default: boolean;
|
|
1203
1210
|
};
|
|
1204
|
-
closeFunc:
|
|
1211
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
1205
1212
|
draggable: {
|
|
1206
1213
|
type: BooleanConstructor;
|
|
1207
1214
|
default: boolean;
|
|
@@ -1239,23 +1246,23 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1239
1246
|
cancelLoading: {
|
|
1240
1247
|
type: BooleanConstructor;
|
|
1241
1248
|
};
|
|
1242
|
-
width:
|
|
1249
|
+
width: PropType<string | number>;
|
|
1243
1250
|
top: {
|
|
1244
1251
|
type: StringConstructor;
|
|
1245
1252
|
};
|
|
1246
1253
|
size: {
|
|
1247
|
-
type:
|
|
1254
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
1248
1255
|
default: string;
|
|
1249
1256
|
};
|
|
1250
1257
|
okButtonProps: {
|
|
1251
|
-
type:
|
|
1252
|
-
disabledTip?:
|
|
1258
|
+
type: PropType<Partial< ButtonProps> & {
|
|
1259
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1253
1260
|
}>;
|
|
1254
|
-
default: Partial<
|
|
1261
|
+
default: Partial< ButtonProps>;
|
|
1255
1262
|
};
|
|
1256
1263
|
cancelButtonProps: {
|
|
1257
|
-
type:
|
|
1258
|
-
default: Partial<
|
|
1264
|
+
type: PropType<Partial< ButtonProps>>;
|
|
1265
|
+
default: Partial< ButtonProps>;
|
|
1259
1266
|
};
|
|
1260
1267
|
isBottom: {
|
|
1261
1268
|
type: BooleanConstructor;
|
|
@@ -1270,8 +1277,8 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1270
1277
|
}>, {
|
|
1271
1278
|
onScrollBottom: () => void;
|
|
1272
1279
|
setModalHeight: () => void;
|
|
1273
|
-
elm:
|
|
1274
|
-
}, {}, {}, {},
|
|
1280
|
+
elm: Ref<any, any>;
|
|
1281
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1275
1282
|
"is-scroll": (...args: any[]) => void;
|
|
1276
1283
|
}, string, {
|
|
1277
1284
|
title: any;
|
|
@@ -1294,12 +1301,12 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1294
1301
|
showOkBtn: boolean;
|
|
1295
1302
|
confirmLoading: boolean;
|
|
1296
1303
|
cancelLoading: boolean;
|
|
1297
|
-
okButtonProps: Partial<
|
|
1298
|
-
disabledTip?:
|
|
1304
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1305
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1299
1306
|
};
|
|
1300
|
-
cancelButtonProps: Partial<
|
|
1307
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1301
1308
|
isBottom: boolean;
|
|
1302
|
-
}, {}, string, {},
|
|
1309
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1303
1310
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1304
1311
|
created?: (() => void) | (() => void)[];
|
|
1305
1312
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -1312,13 +1319,13 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1312
1319
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
1313
1320
|
destroyed?: (() => void) | (() => void)[];
|
|
1314
1321
|
unmounted?: (() => void) | (() => void)[];
|
|
1315
|
-
renderTracked?: ((e:
|
|
1316
|
-
renderTriggered?: ((e:
|
|
1317
|
-
errorCaptured?: ((err: unknown, instance:
|
|
1322
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1323
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1324
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1318
1325
|
};
|
|
1319
1326
|
$forceUpdate: () => void;
|
|
1320
|
-
$nextTick:
|
|
1321
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R,
|
|
1327
|
+
$nextTick: nextTick;
|
|
1328
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1322
1329
|
} & Readonly<{
|
|
1323
1330
|
title: any;
|
|
1324
1331
|
visible: boolean;
|
|
@@ -1340,12 +1347,12 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1340
1347
|
showOkBtn: boolean;
|
|
1341
1348
|
confirmLoading: boolean;
|
|
1342
1349
|
cancelLoading: boolean;
|
|
1343
|
-
okButtonProps: Partial<
|
|
1344
|
-
disabledTip?:
|
|
1350
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1351
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1345
1352
|
};
|
|
1346
|
-
cancelButtonProps: Partial<
|
|
1353
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1347
1354
|
isBottom: boolean;
|
|
1348
|
-
}> & Omit<Readonly<
|
|
1355
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
1349
1356
|
contained: {
|
|
1350
1357
|
type: BooleanConstructor;
|
|
1351
1358
|
default: boolean;
|
|
@@ -1369,7 +1376,7 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1369
1376
|
type: BooleanConstructor;
|
|
1370
1377
|
default: boolean;
|
|
1371
1378
|
};
|
|
1372
|
-
closeFunc:
|
|
1379
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
1373
1380
|
draggable: {
|
|
1374
1381
|
type: BooleanConstructor;
|
|
1375
1382
|
default: boolean;
|
|
@@ -1407,23 +1414,23 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1407
1414
|
cancelLoading: {
|
|
1408
1415
|
type: BooleanConstructor;
|
|
1409
1416
|
};
|
|
1410
|
-
width:
|
|
1417
|
+
width: PropType<string | number>;
|
|
1411
1418
|
top: {
|
|
1412
1419
|
type: StringConstructor;
|
|
1413
1420
|
};
|
|
1414
1421
|
size: {
|
|
1415
|
-
type:
|
|
1422
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
1416
1423
|
default: string;
|
|
1417
1424
|
};
|
|
1418
1425
|
okButtonProps: {
|
|
1419
|
-
type:
|
|
1420
|
-
disabledTip?:
|
|
1426
|
+
type: PropType<Partial< ButtonProps> & {
|
|
1427
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1421
1428
|
}>;
|
|
1422
|
-
default: Partial<
|
|
1429
|
+
default: Partial< ButtonProps>;
|
|
1423
1430
|
};
|
|
1424
1431
|
cancelButtonProps: {
|
|
1425
|
-
type:
|
|
1426
|
-
default: Partial<
|
|
1432
|
+
type: PropType<Partial< ButtonProps>>;
|
|
1433
|
+
default: Partial< ButtonProps>;
|
|
1427
1434
|
};
|
|
1428
1435
|
isBottom: {
|
|
1429
1436
|
type: BooleanConstructor;
|
|
@@ -1435,25 +1442,25 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1435
1442
|
};
|
|
1436
1443
|
}>> & Readonly<{
|
|
1437
1444
|
"onIs-scroll"?: ((...args: any[]) => any) | undefined;
|
|
1438
|
-
}>, "onScrollBottom" | "setModalHeight" | "elm" | ("title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom")> &
|
|
1445
|
+
}>, "onScrollBottom" | "setModalHeight" | "elm" | ("title" | "visible" | "size" | "height" | "draggable" | "loading" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "testId" | "modal" | "contained" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom")> & ShallowUnwrapRef<{
|
|
1439
1446
|
onScrollBottom: () => void;
|
|
1440
1447
|
setModalHeight: () => void;
|
|
1441
|
-
elm:
|
|
1442
|
-
}> & {} &
|
|
1448
|
+
elm: Ref<any, any>;
|
|
1449
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1443
1450
|
$slots: {
|
|
1444
1451
|
default?(_: {}): any;
|
|
1445
1452
|
};
|
|
1446
1453
|
}) | null;
|
|
1447
|
-
}, HTMLDivElement,
|
|
1454
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1448
1455
|
P: {};
|
|
1449
1456
|
B: {};
|
|
1450
1457
|
D: {};
|
|
1451
1458
|
C: {};
|
|
1452
1459
|
M: {};
|
|
1453
1460
|
Defaults: {};
|
|
1454
|
-
}, Readonly<
|
|
1461
|
+
}, Readonly< ExtractPropTypes<{
|
|
1455
1462
|
modalApi: {
|
|
1456
|
-
type:
|
|
1463
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
1457
1464
|
default: undefined;
|
|
1458
1465
|
};
|
|
1459
1466
|
testId: any;
|
|
@@ -1475,7 +1482,7 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1475
1482
|
type: BooleanConstructor;
|
|
1476
1483
|
default: boolean;
|
|
1477
1484
|
};
|
|
1478
|
-
closeFunc:
|
|
1485
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
1479
1486
|
draggable: {
|
|
1480
1487
|
type: BooleanConstructor;
|
|
1481
1488
|
default: boolean;
|
|
@@ -1513,23 +1520,23 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1513
1520
|
cancelLoading: {
|
|
1514
1521
|
type: BooleanConstructor;
|
|
1515
1522
|
};
|
|
1516
|
-
width:
|
|
1523
|
+
width: PropType<string | number>;
|
|
1517
1524
|
top: {
|
|
1518
1525
|
type: StringConstructor;
|
|
1519
1526
|
};
|
|
1520
1527
|
size: {
|
|
1521
|
-
type:
|
|
1528
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
1522
1529
|
default: string;
|
|
1523
1530
|
};
|
|
1524
1531
|
okButtonProps: {
|
|
1525
|
-
type:
|
|
1526
|
-
disabledTip?:
|
|
1532
|
+
type: PropType<Partial< ButtonProps> & {
|
|
1533
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1527
1534
|
}>;
|
|
1528
|
-
default: Partial<
|
|
1535
|
+
default: Partial< ButtonProps>;
|
|
1529
1536
|
};
|
|
1530
1537
|
cancelButtonProps: {
|
|
1531
|
-
type:
|
|
1532
|
-
default: Partial<
|
|
1538
|
+
type: PropType<Partial< ButtonProps>>;
|
|
1539
|
+
default: Partial< ButtonProps>;
|
|
1533
1540
|
};
|
|
1534
1541
|
isBottom: {
|
|
1535
1542
|
type: BooleanConstructor;
|
|
@@ -1540,69 +1547,69 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1540
1547
|
default: () => boolean | undefined;
|
|
1541
1548
|
};
|
|
1542
1549
|
appendToBody: BooleanConstructor;
|
|
1543
|
-
appendTo:
|
|
1550
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
1544
1551
|
beforeClose: {
|
|
1545
|
-
readonly type:
|
|
1552
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
1546
1553
|
readonly required: false;
|
|
1547
1554
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1548
1555
|
__epPropKey: true;
|
|
1549
1556
|
};
|
|
1550
1557
|
destroyOnClose: BooleanConstructor;
|
|
1551
|
-
closeOnClickModal:
|
|
1552
|
-
closeOnPressEscape:
|
|
1553
|
-
lockScroll:
|
|
1558
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1559
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1560
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1554
1561
|
modalPenetrable: BooleanConstructor;
|
|
1555
|
-
openDelay:
|
|
1556
|
-
closeDelay:
|
|
1562
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1563
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1557
1564
|
modelValue: BooleanConstructor;
|
|
1558
1565
|
modalClass: StringConstructor;
|
|
1559
1566
|
headerClass: StringConstructor;
|
|
1560
1567
|
bodyClass: StringConstructor;
|
|
1561
1568
|
footerClass: StringConstructor;
|
|
1562
1569
|
zIndex: {
|
|
1563
|
-
readonly type:
|
|
1570
|
+
readonly type: PropType<number>;
|
|
1564
1571
|
readonly required: false;
|
|
1565
1572
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1566
1573
|
__epPropKey: true;
|
|
1567
1574
|
};
|
|
1568
1575
|
trapFocus: BooleanConstructor;
|
|
1569
|
-
headerAriaLevel:
|
|
1570
|
-
transition:
|
|
1576
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1577
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
1571
1578
|
center: BooleanConstructor;
|
|
1572
|
-
alignCenter:
|
|
1579
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1573
1580
|
closeIcon: {
|
|
1574
|
-
readonly type:
|
|
1581
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
1575
1582
|
readonly required: false;
|
|
1576
1583
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1577
1584
|
__epPropKey: true;
|
|
1578
1585
|
};
|
|
1579
|
-
overflow:
|
|
1580
|
-
showClose:
|
|
1581
|
-
ariaLevel:
|
|
1586
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1587
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1588
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1582
1589
|
}>> & Readonly<{
|
|
1583
1590
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
1584
1591
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
1585
|
-
onRegister?: ((args_0:
|
|
1592
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
1586
1593
|
}>, {
|
|
1587
|
-
modalApi:
|
|
1594
|
+
modalApi: TtModalExtendedModalApi;
|
|
1588
1595
|
}, {}, {}, {}, {
|
|
1589
1596
|
title: any;
|
|
1590
1597
|
visible: boolean;
|
|
1591
|
-
appendTo:
|
|
1592
|
-
transition:
|
|
1598
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
1599
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
1593
1600
|
size: "small" | "medium" | "mini";
|
|
1594
1601
|
center: boolean;
|
|
1595
1602
|
height: any;
|
|
1596
1603
|
draggable: boolean;
|
|
1597
|
-
showClose:
|
|
1604
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1598
1605
|
loading: boolean;
|
|
1599
1606
|
modelValue: boolean;
|
|
1600
|
-
closeOnPressEscape:
|
|
1607
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1601
1608
|
scrollTop: boolean;
|
|
1602
1609
|
minHeight: any;
|
|
1603
1610
|
showFooter: boolean;
|
|
1604
1611
|
fullscreen: boolean;
|
|
1605
|
-
overflow:
|
|
1612
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1606
1613
|
testId: any;
|
|
1607
1614
|
modal: boolean;
|
|
1608
1615
|
cancelText: string;
|
|
@@ -1612,30 +1619,30 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1612
1619
|
showOkBtn: boolean;
|
|
1613
1620
|
confirmLoading: boolean;
|
|
1614
1621
|
cancelLoading: boolean;
|
|
1615
|
-
okButtonProps: Partial<
|
|
1616
|
-
disabledTip?:
|
|
1622
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1623
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1617
1624
|
};
|
|
1618
|
-
cancelButtonProps: Partial<
|
|
1625
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1619
1626
|
isBottom: boolean;
|
|
1620
1627
|
appendToBody: boolean;
|
|
1621
1628
|
destroyOnClose: boolean;
|
|
1622
|
-
closeOnClickModal:
|
|
1623
|
-
lockScroll:
|
|
1629
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1630
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1624
1631
|
modalPenetrable: boolean;
|
|
1625
1632
|
openDelay: number;
|
|
1626
1633
|
closeDelay: number;
|
|
1627
1634
|
trapFocus: boolean;
|
|
1628
1635
|
headerAriaLevel: string;
|
|
1629
|
-
alignCenter:
|
|
1636
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1630
1637
|
ariaLevel: string;
|
|
1631
|
-
modalApi:
|
|
1638
|
+
modalApi: TtModalExtendedModalApi;
|
|
1632
1639
|
}>;
|
|
1633
1640
|
__isFragment?: never;
|
|
1634
1641
|
__isTeleport?: never;
|
|
1635
1642
|
__isSuspense?: never;
|
|
1636
|
-
} &
|
|
1643
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1637
1644
|
modalApi: {
|
|
1638
|
-
type:
|
|
1645
|
+
type: PropType<TtModalExtendedModalApi>;
|
|
1639
1646
|
default: undefined;
|
|
1640
1647
|
};
|
|
1641
1648
|
testId: any;
|
|
@@ -1657,7 +1664,7 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1657
1664
|
type: BooleanConstructor;
|
|
1658
1665
|
default: boolean;
|
|
1659
1666
|
};
|
|
1660
|
-
closeFunc:
|
|
1667
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
1661
1668
|
draggable: {
|
|
1662
1669
|
type: BooleanConstructor;
|
|
1663
1670
|
default: boolean;
|
|
@@ -1695,23 +1702,23 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1695
1702
|
cancelLoading: {
|
|
1696
1703
|
type: BooleanConstructor;
|
|
1697
1704
|
};
|
|
1698
|
-
width:
|
|
1705
|
+
width: PropType<string | number>;
|
|
1699
1706
|
top: {
|
|
1700
1707
|
type: StringConstructor;
|
|
1701
1708
|
};
|
|
1702
1709
|
size: {
|
|
1703
|
-
type:
|
|
1710
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
1704
1711
|
default: string;
|
|
1705
1712
|
};
|
|
1706
1713
|
okButtonProps: {
|
|
1707
|
-
type:
|
|
1708
|
-
disabledTip?:
|
|
1714
|
+
type: PropType<Partial< ButtonProps> & {
|
|
1715
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1709
1716
|
}>;
|
|
1710
|
-
default: Partial<
|
|
1717
|
+
default: Partial< ButtonProps>;
|
|
1711
1718
|
};
|
|
1712
1719
|
cancelButtonProps: {
|
|
1713
|
-
type:
|
|
1714
|
-
default: Partial<
|
|
1720
|
+
type: PropType<Partial< ButtonProps>>;
|
|
1721
|
+
default: Partial< ButtonProps>;
|
|
1715
1722
|
};
|
|
1716
1723
|
isBottom: {
|
|
1717
1724
|
type: BooleanConstructor;
|
|
@@ -1722,73 +1729,73 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1722
1729
|
default: () => boolean | undefined;
|
|
1723
1730
|
};
|
|
1724
1731
|
appendToBody: BooleanConstructor;
|
|
1725
|
-
appendTo:
|
|
1732
|
+
appendTo: EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | (((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>)) | null)[], unknown, unknown, "body", boolean>;
|
|
1726
1733
|
beforeClose: {
|
|
1727
|
-
readonly type:
|
|
1734
|
+
readonly type: PropType<DialogBeforeCloseFn>;
|
|
1728
1735
|
readonly required: false;
|
|
1729
1736
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1730
1737
|
__epPropKey: true;
|
|
1731
1738
|
};
|
|
1732
1739
|
destroyOnClose: BooleanConstructor;
|
|
1733
|
-
closeOnClickModal:
|
|
1734
|
-
closeOnPressEscape:
|
|
1735
|
-
lockScroll:
|
|
1740
|
+
closeOnClickModal: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1741
|
+
closeOnPressEscape: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1742
|
+
lockScroll: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1736
1743
|
modalPenetrable: BooleanConstructor;
|
|
1737
|
-
openDelay:
|
|
1738
|
-
closeDelay:
|
|
1744
|
+
openDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1745
|
+
closeDelay: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
1739
1746
|
modelValue: BooleanConstructor;
|
|
1740
1747
|
modalClass: StringConstructor;
|
|
1741
1748
|
headerClass: StringConstructor;
|
|
1742
1749
|
bodyClass: StringConstructor;
|
|
1743
1750
|
footerClass: StringConstructor;
|
|
1744
1751
|
zIndex: {
|
|
1745
|
-
readonly type:
|
|
1752
|
+
readonly type: PropType<number>;
|
|
1746
1753
|
readonly required: false;
|
|
1747
1754
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1748
1755
|
__epPropKey: true;
|
|
1749
1756
|
};
|
|
1750
1757
|
trapFocus: BooleanConstructor;
|
|
1751
|
-
headerAriaLevel:
|
|
1752
|
-
transition:
|
|
1758
|
+
headerAriaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1759
|
+
transition: EpPropFinalized<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | (((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
1753
1760
|
center: BooleanConstructor;
|
|
1754
|
-
alignCenter:
|
|
1761
|
+
alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1755
1762
|
closeIcon: {
|
|
1756
|
-
readonly type:
|
|
1763
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
1757
1764
|
readonly required: false;
|
|
1758
1765
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1759
1766
|
__epPropKey: true;
|
|
1760
1767
|
};
|
|
1761
|
-
overflow:
|
|
1762
|
-
showClose:
|
|
1763
|
-
ariaLevel:
|
|
1768
|
+
overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1769
|
+
showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1770
|
+
ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
1764
1771
|
}>> & Readonly<{
|
|
1765
1772
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
1766
1773
|
"onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
1767
|
-
onRegister?: ((args_0:
|
|
1774
|
+
onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
1768
1775
|
}>, {
|
|
1769
|
-
modalApi:
|
|
1770
|
-
}, {}, {}, {},
|
|
1776
|
+
modalApi: TtModalExtendedModalApi;
|
|
1777
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1771
1778
|
"update:visible": (args_0: boolean) => any;
|
|
1772
1779
|
"visible-change": (args_0: boolean) => any;
|
|
1773
|
-
register: (args_0:
|
|
1780
|
+
register: (args_0: ModalMethods, args_1: string) => any;
|
|
1774
1781
|
}, string, {
|
|
1775
1782
|
title: any;
|
|
1776
1783
|
visible: boolean;
|
|
1777
|
-
appendTo:
|
|
1778
|
-
transition:
|
|
1784
|
+
appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
1785
|
+
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
1779
1786
|
size: "small" | "medium" | "mini";
|
|
1780
1787
|
center: boolean;
|
|
1781
1788
|
height: any;
|
|
1782
1789
|
draggable: boolean;
|
|
1783
|
-
showClose:
|
|
1790
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1784
1791
|
loading: boolean;
|
|
1785
1792
|
modelValue: boolean;
|
|
1786
|
-
closeOnPressEscape:
|
|
1793
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1787
1794
|
scrollTop: boolean;
|
|
1788
1795
|
minHeight: any;
|
|
1789
1796
|
showFooter: boolean;
|
|
1790
1797
|
fullscreen: boolean;
|
|
1791
|
-
overflow:
|
|
1798
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1792
1799
|
testId: any;
|
|
1793
1800
|
modal: boolean;
|
|
1794
1801
|
cancelText: string;
|
|
@@ -1798,36 +1805,36 @@ export declare const TtModal: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1798
1805
|
showOkBtn: boolean;
|
|
1799
1806
|
confirmLoading: boolean;
|
|
1800
1807
|
cancelLoading: boolean;
|
|
1801
|
-
okButtonProps: Partial<
|
|
1802
|
-
disabledTip?:
|
|
1808
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
1809
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
1803
1810
|
};
|
|
1804
|
-
cancelButtonProps: Partial<
|
|
1811
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
1805
1812
|
isBottom: boolean;
|
|
1806
1813
|
appendToBody: boolean;
|
|
1807
1814
|
destroyOnClose: boolean;
|
|
1808
|
-
closeOnClickModal:
|
|
1809
|
-
lockScroll:
|
|
1815
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1816
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1810
1817
|
modalPenetrable: boolean;
|
|
1811
1818
|
openDelay: number;
|
|
1812
1819
|
closeDelay: number;
|
|
1813
1820
|
trapFocus: boolean;
|
|
1814
1821
|
headerAriaLevel: string;
|
|
1815
|
-
alignCenter:
|
|
1822
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1816
1823
|
ariaLevel: string;
|
|
1817
|
-
modalApi:
|
|
1818
|
-
}, {}, string, {},
|
|
1824
|
+
modalApi: TtModalExtendedModalApi;
|
|
1825
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1819
1826
|
$slots: Readonly<{
|
|
1820
|
-
[key: string]:
|
|
1821
|
-
titleToolbar?:
|
|
1822
|
-
header?:
|
|
1823
|
-
default?:
|
|
1824
|
-
footer?:
|
|
1827
|
+
[key: string]: Slot | undefined;
|
|
1828
|
+
titleToolbar?: Slot;
|
|
1829
|
+
header?: Slot;
|
|
1830
|
+
default?: Slot;
|
|
1831
|
+
footer?: Slot;
|
|
1825
1832
|
}> & {
|
|
1826
|
-
[key: string]:
|
|
1827
|
-
titleToolbar?:
|
|
1828
|
-
header?:
|
|
1829
|
-
default?:
|
|
1830
|
-
footer?:
|
|
1833
|
+
[key: string]: Slot | undefined;
|
|
1834
|
+
titleToolbar?: Slot;
|
|
1835
|
+
header?: Slot;
|
|
1836
|
+
default?: Slot;
|
|
1837
|
+
footer?: Slot;
|
|
1831
1838
|
};
|
|
1832
1839
|
})> & Record<string, any>;
|
|
1833
1840
|
export type TtModalInstance = InstanceType<typeof RenderModal>;
|