@dazhicheng/ui 1.6.25 → 1.6.27
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 +35 -24
- package/dist/components/tt-api-component/index.vue.d.ts +34 -0
- package/dist/components/tt-area/TtArea.vue.d.ts +2 -0
- package/dist/components/tt-area/index.d.ts +1 -1
- package/dist/components/tt-button/components/AddButton.vue.d.ts +2 -0
- package/dist/components/tt-button/index.d.ts +589 -260
- package/dist/components/tt-button/index.vue.d.ts +466 -0
- package/dist/components/tt-checkbox/index.d.ts +35 -26
- package/dist/components/tt-checkbox/index.vue.d.ts +28 -0
- package/dist/components/tt-drawer/index.d.ts +299 -306
- package/dist/components/tt-drawer/src/{RenderDrawer.d.ts → RenderDrawer.vue.d.ts} +146 -149
- package/dist/components/tt-drawer/src/components/{DrawerFooter.d.ts → DrawerFooter.vue.d.ts} +16 -18
- package/dist/components/tt-drawer/src/components/{DrawerHeader.d.ts → DrawerHeader.vue.d.ts} +3 -4
- 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 +2 -4
- package/dist/components/tt-empty/index.d.ts +8 -10
- package/dist/components/tt-form/src/components/{ExpandableArrow.d.ts → ExpandableArrow.vue.d.ts} +4 -5
- package/dist/components/tt-form/src/components/{FormActions.d.ts → FormActions.vue.d.ts} +5 -6
- package/dist/components/tt-form/src/components/{FormElInput.d.ts → FormElInput.vue.d.ts} +101 -105
- package/dist/components/tt-form/src/components/Slot.d.ts +4 -4
- package/dist/components/tt-form/src/form/{FormControl.d.ts → FormControl.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form/{FormDescription.d.ts → FormDescription.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form/{FormItem.d.ts → FormItem.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form/{FormLabel.d.ts → FormLabel.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +2 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +8 -0
- package/dist/components/tt-form/src/form/{FormWarnMessage.d.ts → FormWarnMessage.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form/{RenderContent.d.ts → RenderContent.vue.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 +5 -6
- package/dist/components/tt-form/src/form-render/{FormField.d.ts → FormField.vue.d.ts} +1 -2
- package/dist/components/tt-form/src/form-render/FormFieldContact.d.ts +6 -6
- package/dist/components/tt-form/src/form-render/{FormLabel.d.ts → FormLabel.vue.d.ts} +2 -3
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +11 -14
- package/dist/components/tt-form/src/form-render/context.d.ts +4 -5
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +6 -7
- package/dist/components/tt-form/src/form-render/expandable.d.ts +3 -4
- package/dist/components/tt-form/src/form-render/{form.d.ts → form.vue.d.ts} +8 -9
- 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.d.ts → GroupForm.vue.d.ts} +5 -7
- package/dist/components/tt-form/src/group-form/{GroupSection.d.ts → GroupSection.vue.d.ts} +5 -7
- package/dist/components/tt-form/src/group-form/{LazyFormField.d.ts → LazyFormField.vue.d.ts} +3 -5
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +5 -7
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +2 -3
- 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.vue.d.ts +216 -0
- package/dist/components/tt-form/src/useForm.d.ts +1 -2
- package/dist/components/tt-form/src/useFormContext.d.ts +1 -2
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +337 -61
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +298 -0
- package/dist/components/tt-icon/components/AddIcon.vue.d.ts +7 -0
- package/dist/components/tt-icon/components/SubIcon.vue.d.ts +7 -0
- package/dist/components/tt-icon/index.d.ts +115 -24
- package/dist/components/tt-icon/index.vue.d.ts +32 -0
- package/dist/components/tt-image/index.d.ts +41 -45
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +26 -30
- package/dist/components/tt-image/tt-image.d.ts +34 -36
- package/dist/components/tt-loading/index.d.ts +2 -5
- package/dist/components/tt-loading/src/loading.vue.d.ts +12 -0
- package/dist/components/tt-log/index.d.ts +6 -7
- package/dist/components/tt-log/index.vue.d.ts +5 -0
- package/dist/components/tt-modal/index.d.ts +364 -371
- package/dist/components/tt-modal/src/{RenderModal.d.ts → RenderModal.vue.d.ts} +115 -118
- package/dist/components/tt-modal/src/components/{ModalFooter.d.ts → ModalFooter.vue.d.ts} +23 -26
- package/dist/components/tt-modal/src/components/{ModalHeader.d.ts → ModalHeader.vue.d.ts} +3 -4
- package/dist/components/tt-modal/src/components/{ModalWrapper.d.ts → ModalWrapper.vue.d.ts} +24 -27
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +29 -32
- package/dist/components/tt-modal/src/typing.d.ts +2 -2
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +1 -2
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.d.ts +2 -3
- package/dist/components/tt-modal-form/index.d.ts +2 -46
- package/dist/components/tt-modal-form/index.vue.d.ts +45 -0
- package/dist/components/tt-modal-form/useModalForm.d.ts +3 -4
- package/dist/components/tt-nav-anchor/index.d.ts +12 -15
- package/dist/components/tt-nav-anchor/src/{TtNavAnchor.d.ts → TtNavAnchor.vue.d.ts} +4 -4
- package/dist/components/tt-panel-select/index.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/{PanelLeft.d.ts → PanelLeft.vue.d.ts} +3 -4
- package/dist/components/tt-panel-select/src/components/{PanelMiddle.d.ts → PanelMiddle.vue.d.ts} +80 -83
- package/dist/components/tt-panel-select/src/components/{PanelRight.d.ts → PanelRight.vue.d.ts} +32 -34
- package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +6 -7
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +5 -5
- package/dist/components/tt-panel-select/src/{index.d.ts → index.vue.d.ts} +80 -84
- package/dist/components/tt-radio-group/index.d.ts +50 -31
- package/dist/components/tt-radio-group/index.vue.d.ts +33 -0
- package/dist/components/tt-select/index.d.ts +1 -1
- package/dist/components/tt-select/src/{Select.d.ts → Select.vue.d.ts} +141 -146
- package/dist/components/tt-select/src/components/{SelectTable.d.ts → SelectTable.vue.d.ts} +36 -40
- package/dist/components/tt-select/src/components/{Table.d.ts → Table.vue.d.ts} +38 -41
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +3 -4
- 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 +279 -287
- package/dist/components/tt-table/src/{Table.d.ts → Table.vue.d.ts} +204 -209
- package/dist/components/tt-table/src/{TableForm.d.ts → TableForm.vue.d.ts} +80 -83
- package/dist/components/tt-table/src/components/RowContext.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableAction.d.ts → TableAction.vue.d.ts} +4 -4
- package/dist/components/tt-table/src/components/TableButtons.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableColumnModal.d.ts → TableColumnModal.vue.d.ts} +4 -5
- package/dist/components/tt-table/src/components/{TableToolbarTools.d.ts → TableToolbarTools.vue.d.ts} +6 -7
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +44 -45
- 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 +110 -112
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +2 -2
- package/dist/components/tt-table/src/props.d.ts +17 -19
- 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 +1 -2
- package/dist/components/tt-text/index.d.ts +59 -34
- package/dist/components/tt-text/index.vue.d.ts +50 -0
- package/dist/components/tt-upload/index.d.ts +311 -317
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +517 -0
- package/dist/components/tt-upload/src/typing.d.ts +47 -49
- package/dist/hooks/basicDataCodes.js +21 -20
- package/dist/hooks/useDataPermissionOptions.d.ts +24 -11
- package/dist/hooks/useDataPermissionOptions.js +85 -128
- package/dist/hooks/useFormSchemasLink.d.ts +4 -4
- package/dist/hooks/useLoading.d.ts +2 -2
- package/dist/hooks/useScreenshotOss.d.ts +2 -2
- package/dist/hooks/userListCache.js +5 -5
- package/dist/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/components/tt-area/TtArea.d.ts +0 -3
- package/dist/components/tt-button/components/AddButton.d.ts +0 -3
- package/dist/components/tt-form/src/form/FormMessage.d.ts +0 -3
- package/dist/components/tt-form/src/form/FormMessageToolTip.d.ts +0 -9
- package/dist/components/tt-form/src/index.d.ts +0 -217
- package/dist/components/tt-icon/components/AddIcon.d.ts +0 -8
- package/dist/components/tt-icon/components/SubIcon.d.ts +0 -8
- package/dist/components/tt-loading/src/loading.d.ts +0 -13
- package/dist/components/tt-upload/src/TtUpload.d.ts +0 -519
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import { ButtonProps } from 'element-plus';
|
|
3
|
-
import { TipConfig } from '../../../../directives/disabled-tip';
|
|
4
1
|
declare function __VLS_template(): {
|
|
5
2
|
attrs: Partial<{}>;
|
|
6
3
|
slots: Readonly<{
|
|
@@ -18,7 +15,7 @@ declare function __VLS_template(): {
|
|
|
18
15
|
rootEl: HTMLDivElement;
|
|
19
16
|
};
|
|
20
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<Pick<{
|
|
22
19
|
testId: any;
|
|
23
20
|
visible: {
|
|
24
21
|
type: BooleanConstructor;
|
|
@@ -38,7 +35,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
38
35
|
type: BooleanConstructor;
|
|
39
36
|
default: boolean;
|
|
40
37
|
};
|
|
41
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
38
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
42
39
|
draggable: {
|
|
43
40
|
type: BooleanConstructor;
|
|
44
41
|
default: boolean;
|
|
@@ -77,23 +74,23 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
77
74
|
cancelLoading: {
|
|
78
75
|
type: BooleanConstructor;
|
|
79
76
|
};
|
|
80
|
-
width: PropType<string | number>;
|
|
77
|
+
width: import('vue').PropType<string | number>;
|
|
81
78
|
top: {
|
|
82
79
|
type: StringConstructor;
|
|
83
80
|
};
|
|
84
81
|
size: {
|
|
85
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
82
|
+
type: import('vue').PropType<"medium" | "small" | "mini">;
|
|
86
83
|
default: string;
|
|
87
84
|
};
|
|
88
85
|
okButtonProps: {
|
|
89
|
-
type: PropType<Partial<
|
|
90
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
86
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps> & {
|
|
87
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
91
88
|
}>;
|
|
92
|
-
default: Partial<
|
|
89
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
93
90
|
};
|
|
94
91
|
cancelButtonProps: {
|
|
95
|
-
type: PropType<Partial<
|
|
96
|
-
default: Partial<
|
|
92
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
93
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
97
94
|
};
|
|
98
95
|
isBottom: {
|
|
99
96
|
type: BooleanConstructor;
|
|
@@ -103,9 +100,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
103
100
|
type: BooleanConstructor;
|
|
104
101
|
default: () => boolean | undefined;
|
|
105
102
|
};
|
|
106
|
-
}, "cancelText" | "okText" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps">>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
103
|
+
}, "cancelText" | "okText" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps">>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
107
104
|
cancel: (e: Event) => any;
|
|
108
|
-
}, string, PublicProps, Readonly<
|
|
105
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<Pick<{
|
|
109
106
|
testId: any;
|
|
110
107
|
visible: {
|
|
111
108
|
type: BooleanConstructor;
|
|
@@ -125,7 +122,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
125
122
|
type: BooleanConstructor;
|
|
126
123
|
default: boolean;
|
|
127
124
|
};
|
|
128
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
125
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
129
126
|
draggable: {
|
|
130
127
|
type: BooleanConstructor;
|
|
131
128
|
default: boolean;
|
|
@@ -164,23 +161,23 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
164
161
|
cancelLoading: {
|
|
165
162
|
type: BooleanConstructor;
|
|
166
163
|
};
|
|
167
|
-
width: PropType<string | number>;
|
|
164
|
+
width: import('vue').PropType<string | number>;
|
|
168
165
|
top: {
|
|
169
166
|
type: StringConstructor;
|
|
170
167
|
};
|
|
171
168
|
size: {
|
|
172
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
169
|
+
type: import('vue').PropType<"medium" | "small" | "mini">;
|
|
173
170
|
default: string;
|
|
174
171
|
};
|
|
175
172
|
okButtonProps: {
|
|
176
|
-
type: PropType<Partial<
|
|
177
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
173
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps> & {
|
|
174
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
178
175
|
}>;
|
|
179
|
-
default: Partial<
|
|
176
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
180
177
|
};
|
|
181
178
|
cancelButtonProps: {
|
|
182
|
-
type: PropType<Partial<
|
|
183
|
-
default: Partial<
|
|
179
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
180
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
184
181
|
};
|
|
185
182
|
isBottom: {
|
|
186
183
|
type: BooleanConstructor;
|
|
@@ -199,11 +196,11 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
|
199
196
|
showOkBtn: boolean;
|
|
200
197
|
confirmLoading: boolean;
|
|
201
198
|
cancelLoading: boolean;
|
|
202
|
-
okButtonProps: Partial<
|
|
203
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
199
|
+
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
200
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
204
201
|
};
|
|
205
|
-
cancelButtonProps: Partial<
|
|
206
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
202
|
+
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
203
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
207
204
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
208
205
|
export default _default;
|
|
209
206
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
1
|
declare function __VLS_template(): {
|
|
3
2
|
attrs: Partial<{}>;
|
|
4
3
|
slots: Readonly<{
|
|
@@ -14,15 +13,15 @@ declare function __VLS_template(): {
|
|
|
14
13
|
rootEl: HTMLDivElement;
|
|
15
14
|
};
|
|
16
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
17
|
/** 标题 */
|
|
19
18
|
title: any;
|
|
20
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
20
|
/** 标题 */
|
|
22
21
|
title: any;
|
|
23
22
|
}>> & Readonly<{}>, {
|
|
24
23
|
title: any;
|
|
25
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
26
|
export default _default;
|
|
28
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import { ButtonProps } from 'element-plus';
|
|
3
|
-
import { TipConfig } from '../../../../directives/disabled-tip';
|
|
4
1
|
/** 可用内容高度 = 容器高 - 顶距 - 头 - 底栏 - 底边距 */
|
|
5
2
|
declare function updateRealHeight(): void;
|
|
6
3
|
declare function onScrollBottom(): void;
|
|
@@ -15,7 +12,7 @@ declare function __VLS_template(): {
|
|
|
15
12
|
rootEl: HTMLDivElement;
|
|
16
13
|
};
|
|
17
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
16
|
/** 区域遮罩:高度相对挂载容器,不再按整屏 vh */
|
|
20
17
|
contained: {
|
|
21
18
|
type: BooleanConstructor;
|
|
@@ -40,7 +37,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
40
37
|
type: BooleanConstructor;
|
|
41
38
|
default: boolean;
|
|
42
39
|
};
|
|
43
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
40
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
44
41
|
draggable: {
|
|
45
42
|
type: BooleanConstructor;
|
|
46
43
|
default: boolean;
|
|
@@ -78,23 +75,23 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
78
75
|
cancelLoading: {
|
|
79
76
|
type: BooleanConstructor;
|
|
80
77
|
};
|
|
81
|
-
width: PropType<string | number>;
|
|
78
|
+
width: import('vue').PropType<string | number>;
|
|
82
79
|
top: {
|
|
83
80
|
type: StringConstructor;
|
|
84
81
|
};
|
|
85
82
|
size: {
|
|
86
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
83
|
+
type: import('vue').PropType<"medium" | "small" | "mini">;
|
|
87
84
|
default: string;
|
|
88
85
|
};
|
|
89
86
|
okButtonProps: {
|
|
90
|
-
type: PropType<Partial<
|
|
91
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
87
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps> & {
|
|
88
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
92
89
|
}>;
|
|
93
|
-
default: Partial<
|
|
90
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
94
91
|
};
|
|
95
92
|
cancelButtonProps: {
|
|
96
|
-
type: PropType<Partial<
|
|
97
|
-
default: Partial<
|
|
93
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
94
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
98
95
|
};
|
|
99
96
|
isBottom: {
|
|
100
97
|
type: BooleanConstructor;
|
|
@@ -107,10 +104,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
107
104
|
}>, {
|
|
108
105
|
onScrollBottom: typeof onScrollBottom;
|
|
109
106
|
setModalHeight: typeof updateRealHeight;
|
|
110
|
-
elm: Ref<any, any>;
|
|
111
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
107
|
+
elm: import('vue').Ref<any, any>;
|
|
108
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
112
109
|
"is-scroll": (...args: any[]) => void;
|
|
113
|
-
}, string, PublicProps, Readonly<
|
|
110
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
114
111
|
/** 区域遮罩:高度相对挂载容器,不再按整屏 vh */
|
|
115
112
|
contained: {
|
|
116
113
|
type: BooleanConstructor;
|
|
@@ -135,7 +132,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
135
132
|
type: BooleanConstructor;
|
|
136
133
|
default: boolean;
|
|
137
134
|
};
|
|
138
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
135
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
139
136
|
draggable: {
|
|
140
137
|
type: BooleanConstructor;
|
|
141
138
|
default: boolean;
|
|
@@ -173,23 +170,23 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
173
170
|
cancelLoading: {
|
|
174
171
|
type: BooleanConstructor;
|
|
175
172
|
};
|
|
176
|
-
width: PropType<string | number>;
|
|
173
|
+
width: import('vue').PropType<string | number>;
|
|
177
174
|
top: {
|
|
178
175
|
type: StringConstructor;
|
|
179
176
|
};
|
|
180
177
|
size: {
|
|
181
|
-
type: PropType<"medium" | "small" | "mini">;
|
|
178
|
+
type: import('vue').PropType<"medium" | "small" | "mini">;
|
|
182
179
|
default: string;
|
|
183
180
|
};
|
|
184
181
|
okButtonProps: {
|
|
185
|
-
type: PropType<Partial<
|
|
186
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
182
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps> & {
|
|
183
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
187
184
|
}>;
|
|
188
|
-
default: Partial<
|
|
185
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
189
186
|
};
|
|
190
187
|
cancelButtonProps: {
|
|
191
|
-
type: PropType<Partial<
|
|
192
|
-
default: Partial<
|
|
188
|
+
type: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
189
|
+
default: Partial<import('element-plus').ButtonProps>;
|
|
193
190
|
};
|
|
194
191
|
isBottom: {
|
|
195
192
|
type: BooleanConstructor;
|
|
@@ -222,12 +219,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
222
219
|
showOkBtn: boolean;
|
|
223
220
|
confirmLoading: boolean;
|
|
224
221
|
cancelLoading: boolean;
|
|
225
|
-
okButtonProps: Partial<
|
|
226
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
222
|
+
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
223
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
227
224
|
};
|
|
228
|
-
cancelButtonProps: Partial<
|
|
225
|
+
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
229
226
|
isBottom: boolean;
|
|
230
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
227
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
231
228
|
wrapperRef: HTMLDivElement;
|
|
232
229
|
}, HTMLDivElement>;
|
|
233
230
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import { ModalApiOptions, ModalProps, TtModalExtendedModalApi
|
|
2
|
-
import { App, Component
|
|
3
|
-
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
4
|
-
import { DialogTransition, ButtonProps, DialogBeforeCloseFn, DialogProps } from 'element-plus';
|
|
5
|
-
import { TipConfig } from '../../../../directives/disabled-tip';
|
|
1
|
+
import { ModalApiOptions, ModalProps, TtModalExtendedModalApi } from '../typing';
|
|
2
|
+
import { App, Component } from 'vue';
|
|
6
3
|
export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
|
|
7
4
|
/**
|
|
8
5
|
* modal 可选hooks
|
|
9
6
|
*/
|
|
10
|
-
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [
|
|
7
|
+
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [import('vue').DefineSetupFnComponent<TParentModalProps, {}, {}, TParentModalProps & {}, import('vue').PublicProps>, TtModalExtendedModalApi] | readonly [import('vue').DefineSetupFnComponent<ModalProps, {}, {}, Partial<{
|
|
11
8
|
title: any;
|
|
12
9
|
visible: boolean;
|
|
13
|
-
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>;
|
|
14
|
-
transition: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown>;
|
|
10
|
+
appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
11
|
+
transition: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown>;
|
|
15
12
|
size: "small" | "medium" | "mini";
|
|
16
13
|
center: boolean;
|
|
17
14
|
height: any;
|
|
18
15
|
draggable: boolean;
|
|
19
|
-
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
16
|
+
showClose: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
17
|
loading: boolean;
|
|
21
18
|
modelValue: boolean;
|
|
22
|
-
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
19
|
+
closeOnPressEscape: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
23
20
|
scrollTop: boolean;
|
|
24
21
|
minHeight: any;
|
|
25
22
|
showFooter: boolean;
|
|
26
23
|
fullscreen: boolean;
|
|
27
|
-
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
24
|
+
overflow: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
28
25
|
testId: any;
|
|
29
26
|
modal: boolean;
|
|
30
27
|
cancelText: string;
|
|
@@ -34,35 +31,35 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
34
31
|
showOkBtn: boolean;
|
|
35
32
|
confirmLoading: boolean;
|
|
36
33
|
cancelLoading: boolean;
|
|
37
|
-
okButtonProps: Partial<
|
|
38
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
34
|
+
okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
35
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
39
36
|
};
|
|
40
|
-
cancelButtonProps: Partial<
|
|
37
|
+
cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
41
38
|
isBottom: boolean;
|
|
42
39
|
appendToBody: boolean;
|
|
43
40
|
destroyOnClose: boolean;
|
|
44
|
-
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
45
|
-
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
|
+
closeOnClickModal: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
|
+
lockScroll: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
46
43
|
modalPenetrable: boolean;
|
|
47
44
|
openDelay: number;
|
|
48
45
|
closeDelay: number;
|
|
49
46
|
trapFocus: boolean;
|
|
50
47
|
headerAriaLevel: string;
|
|
51
|
-
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
48
|
+
alignCenter: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
52
49
|
ariaLevel: string;
|
|
53
50
|
modalApi: TtModalExtendedModalApi;
|
|
54
51
|
}> & Omit<{
|
|
55
52
|
readonly title: any;
|
|
56
53
|
readonly visible: boolean;
|
|
57
|
-
readonly 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>;
|
|
54
|
+
readonly appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
58
55
|
readonly size: "small" | "medium" | "mini";
|
|
59
56
|
readonly center: boolean;
|
|
60
57
|
readonly height: any;
|
|
61
58
|
readonly draggable: boolean;
|
|
62
|
-
readonly showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
59
|
+
readonly showClose: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
63
60
|
readonly loading: boolean;
|
|
64
61
|
readonly modelValue: boolean;
|
|
65
|
-
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
62
|
+
readonly closeOnPressEscape: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
66
63
|
readonly scrollTop: boolean;
|
|
67
64
|
readonly minHeight: any;
|
|
68
65
|
readonly showFooter: boolean;
|
|
@@ -76,15 +73,15 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
76
73
|
readonly showOkBtn: boolean;
|
|
77
74
|
readonly confirmLoading: boolean;
|
|
78
75
|
readonly cancelLoading: boolean;
|
|
79
|
-
readonly okButtonProps: Partial<
|
|
80
|
-
disabledTip?: TipConfig | TipConfig[];
|
|
76
|
+
readonly okButtonProps: Partial<import('element-plus').ButtonProps> & {
|
|
77
|
+
disabledTip?: import('../../../../directives/disabled-tip').TipConfig | import('../../../../directives/disabled-tip').TipConfig[];
|
|
81
78
|
};
|
|
82
|
-
readonly cancelButtonProps: Partial<
|
|
79
|
+
readonly cancelButtonProps: Partial<import('element-plus').ButtonProps>;
|
|
83
80
|
readonly isBottom: boolean;
|
|
84
81
|
readonly appendToBody: boolean;
|
|
85
82
|
readonly destroyOnClose: boolean;
|
|
86
|
-
readonly closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
|
-
readonly lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
|
+
readonly closeOnClickModal: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
84
|
+
readonly lockScroll: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
85
|
readonly modalPenetrable: boolean;
|
|
89
86
|
readonly openDelay: number;
|
|
90
87
|
readonly closeDelay: number;
|
|
@@ -93,21 +90,21 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
93
90
|
readonly ariaLevel: string;
|
|
94
91
|
readonly top?: string | undefined;
|
|
95
92
|
readonly zIndex?: number | undefined;
|
|
96
|
-
readonly transition?: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown> | undefined;
|
|
93
|
+
readonly transition?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown> | undefined;
|
|
97
94
|
readonly width?: string | number | undefined;
|
|
98
|
-
readonly closeIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown> | undefined;
|
|
99
|
-
readonly beforeClose?: DialogBeforeCloseFn | undefined;
|
|
100
|
-
readonly overflow?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
95
|
+
readonly closeIcon?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown> | undefined;
|
|
96
|
+
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
97
|
+
readonly overflow?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
101
98
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
102
99
|
readonly loadingTip?: string | undefined;
|
|
103
100
|
readonly modalClass?: string | undefined;
|
|
104
|
-
readonly alignCenter?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
101
|
+
readonly alignCenter?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
105
102
|
readonly headerClass?: string | undefined;
|
|
106
103
|
readonly bodyClass?: string | undefined;
|
|
107
104
|
readonly footerClass?: string | undefined;
|
|
108
105
|
readonly modalApi?: TtModalExtendedModalApi | undefined;
|
|
109
106
|
readonly "onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
110
107
|
readonly "onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
111
|
-
readonly onRegister?: ((args_0: ModalMethods, args_1: string) => any) | undefined;
|
|
112
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "visible" | "appendTo" | "transition" | "size" | "center" | "height" | "draggable" | "showClose" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "overflow" | "testId" | "modal" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modalPenetrable" | "openDelay" | "closeDelay" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "ariaLevel" | "modalApi"> & Partial<
|
|
108
|
+
readonly onRegister?: ((args_0: import('../typing').ModalMethods, args_1: string) => any) | undefined;
|
|
109
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "visible" | "appendTo" | "transition" | "size" | "center" | "height" | "draggable" | "showClose" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "overflow" | "testId" | "modal" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modalPenetrable" | "openDelay" | "closeDelay" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "ariaLevel" | "modalApi"> & Partial<import('element-plus').DialogProps> & {}, import('vue').PublicProps>, TtModalExtendedModalApi];
|
|
113
110
|
export declare function showTtModal<T extends Component>(app: App, component: T, options: ModalApiOptions): TtModalExtendedModalApi;
|
|
@@ -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 TtModal } from './RenderModal';
|
|
5
|
-
import { default as TtModalWrapper } from './components/ModalWrapper';
|
|
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: 弹窗对外暴露的方法
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ModalApiOptions, ModalMethods, ModalRenderState } from '../typing';
|
|
2
2
|
import { Store } from '@tanstack/vue-store';
|
|
3
|
-
import { ComputedRef } from 'vue';
|
|
4
3
|
export type ApiType = Pick<ModalApiOptions, "onClose" | "onVisibleChange" | "onOk" | "onReceiveSharedData" | "onClosed">;
|
|
5
4
|
/**
|
|
6
5
|
* 弹窗的API类
|
|
@@ -92,7 +91,7 @@ export declare class ModalApi {
|
|
|
92
91
|
* 获取弹窗的可见状态
|
|
93
92
|
* @returns 弹窗的可见状态
|
|
94
93
|
*/
|
|
95
|
-
getVisible: ComputedRef<boolean>;
|
|
94
|
+
getVisible: import('vue').ComputedRef<boolean>;
|
|
96
95
|
/**
|
|
97
96
|
* 重置弹窗高度
|
|
98
97
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
1
|
export declare function useModalFormSlot(slots: any): {
|
|
3
|
-
getFormSlotKeys: ComputedRef<(string | null)[]>;
|
|
4
|
-
getModalSlotKeys: ComputedRef<(string | null)[]>;
|
|
2
|
+
getFormSlotKeys: import('vue').ComputedRef<(string | null)[]>;
|
|
3
|
+
getModalSlotKeys: import('vue').ComputedRef<(string | null)[]>;
|
|
5
4
|
replaceModalSlotKey: (key: string | null) => string;
|
|
6
5
|
replaceFormSlotKey: (key: string | null) => string;
|
|
7
6
|
};
|
|
@@ -1,46 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { TtFormProps, UseGroupFormOptions } from '../tt-form';
|
|
4
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: Readonly<{
|
|
8
|
-
[key: string]: (props: any) => void;
|
|
9
|
-
BasicMsgTop: () => void;
|
|
10
|
-
insertFooter: () => void;
|
|
11
|
-
default: (props: any) => void;
|
|
12
|
-
}> & {
|
|
13
|
-
[key: string]: (props: any) => void;
|
|
14
|
-
BasicMsgTop: () => void;
|
|
15
|
-
insertFooter: () => void;
|
|
16
|
-
default: (props: any) => void;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: any;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: DefineComponent<Partial<TtModalFormProps<ModalFormType>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
-
submit: (data: Recordable) => any;
|
|
24
|
-
fetch: (data: Recordable) => any;
|
|
25
|
-
getinfo: (data: any) => any;
|
|
26
|
-
}, string, PublicProps, Readonly<Partial<TtModalFormProps<ModalFormType>>> & Readonly<{
|
|
27
|
-
onSubmit?: ((data: Recordable) => any) | undefined;
|
|
28
|
-
onFetch?: ((data: Recordable) => any) | undefined;
|
|
29
|
-
onGetinfo?: ((data: any) => any) | undefined;
|
|
30
|
-
}>, {
|
|
31
|
-
renderType: ModalFormType;
|
|
32
|
-
dataField: string;
|
|
33
|
-
infoApiIdKey: string;
|
|
34
|
-
infoApiParams: globalThis.Recordable;
|
|
35
|
-
apiParams: globalThis.Recordable;
|
|
36
|
-
formProps: Partial<TtFormProps<Record<string, any>>> | Partial<UseGroupFormOptions<Record<string, any>>>;
|
|
37
|
-
isContinuousChecked: boolean;
|
|
38
|
-
checkedOptions: Record<string, any>;
|
|
39
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
40
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
-
new (): {
|
|
44
|
-
$slots: S;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
1
|
+
export * from './useModalForm';
|
|
2
|
+
export type { ModalFormApi, ModalFormType, TtModalFormProps } from './props';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Recordable } from '../../../../utils/src';
|
|
2
|
+
import { ModalFormType, TtModalFormProps } from './props';
|
|
3
|
+
import { TtFormProps, UseGroupFormOptions } from '../tt-form';
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: Readonly<{
|
|
7
|
+
[key: string]: (props: any) => void;
|
|
8
|
+
BasicMsgTop: () => void;
|
|
9
|
+
insertFooter: () => void;
|
|
10
|
+
default: (props: any) => void;
|
|
11
|
+
}> & {
|
|
12
|
+
[key: string]: (props: any) => void;
|
|
13
|
+
BasicMsgTop: () => void;
|
|
14
|
+
insertFooter: () => void;
|
|
15
|
+
default: (props: any) => void;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<TtModalFormProps<ModalFormType>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
submit: (data: Recordable) => any;
|
|
23
|
+
fetch: (data: Recordable) => any;
|
|
24
|
+
getinfo: (data: any) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<Partial<TtModalFormProps<ModalFormType>>> & Readonly<{
|
|
26
|
+
onSubmit?: ((data: Recordable) => any) | undefined;
|
|
27
|
+
onFetch?: ((data: Recordable) => any) | undefined;
|
|
28
|
+
onGetinfo?: ((data: any) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
renderType: ModalFormType;
|
|
31
|
+
dataField: string;
|
|
32
|
+
infoApiIdKey: string;
|
|
33
|
+
infoApiParams: globalThis.Recordable;
|
|
34
|
+
apiParams: globalThis.Recordable;
|
|
35
|
+
formProps: Partial<TtFormProps<Record<string, any>>> | Partial<UseGroupFormOptions<Record<string, any>>>;
|
|
36
|
+
isContinuousChecked: boolean;
|
|
37
|
+
checkedOptions: Record<string, any>;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TtModalExtendedModalApi } from '../tt-modal';
|
|
2
2
|
import { ModalFormApi, ModalFormType, TtModalFormProps } from './props';
|
|
3
|
-
import { DefineSetupFnComponent, PublicProps, Ref } from 'vue';
|
|
4
3
|
/** 创建普通表单或分组表单的弹窗表单。 */
|
|
5
|
-
export declare function useModalForm<TType extends ModalFormType = "form", TValues extends Record<string, any> = Record<string, any>>(options: TtModalFormProps<TType, TValues>): readonly [
|
|
6
|
-
readonly formApi: Ref<ModalFormApi<TType, TValues> | undefined, ModalFormApi<TType, TValues> | undefined>;
|
|
7
|
-
readonly modalApi: Ref<TtModalExtendedModalApi | undefined, TtModalExtendedModalApi | undefined>;
|
|
4
|
+
export declare function useModalForm<TType extends ModalFormType = "form", TValues extends Record<string, any> = Record<string, any>>(options: TtModalFormProps<TType, TValues>): readonly [import('vue').DefineSetupFnComponent<Partial<TtModalFormProps<ModalFormType>>, {}, {}, Partial<TtModalFormProps<ModalFormType>> & {}, import('vue').PublicProps>, {
|
|
5
|
+
readonly formApi: import('vue').Ref<ModalFormApi<TType, TValues> | undefined, ModalFormApi<TType, TValues> | undefined>;
|
|
6
|
+
readonly modalApi: import('vue').Ref<TtModalExtendedModalApi | undefined, TtModalExtendedModalApi | undefined>;
|
|
8
7
|
}];
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { TtNavAnchorProps, NavAnchorItemScope } from '.';
|
|
4
|
-
export declare const TtNavAnchor: SFCWithInstall<{
|
|
5
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< TtNavAnchorProps> & Readonly<{
|
|
1
|
+
export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').TtNavAnchorProps> & Readonly<{
|
|
6
3
|
onChange?: ((key: string) => any) | undefined;
|
|
7
4
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
6
|
change: (key: string) => any;
|
|
10
7
|
"update:modelValue": (key: string) => any;
|
|
11
|
-
}, PublicProps, {
|
|
8
|
+
}, import('vue').PublicProps, {
|
|
12
9
|
top: number | string;
|
|
13
10
|
bottom: number | string;
|
|
14
11
|
left: number | string;
|
|
@@ -18,18 +15,18 @@ export declare const TtNavAnchor: SFCWithInstall<{
|
|
|
18
15
|
modelValue: string;
|
|
19
16
|
badgeCounts: Record<string, number>;
|
|
20
17
|
teleportTo: string | HTMLElement;
|
|
21
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
18
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
22
19
|
sourceRef: HTMLSpanElement;
|
|
23
20
|
navRef: HTMLDivElement;
|
|
24
21
|
headerRef: HTMLDivElement;
|
|
25
|
-
}, any, ComponentProvideOptions, {
|
|
22
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
26
23
|
P: {};
|
|
27
24
|
B: {};
|
|
28
25
|
D: {};
|
|
29
26
|
C: {};
|
|
30
27
|
M: {};
|
|
31
28
|
Defaults: {};
|
|
32
|
-
}, Readonly<
|
|
29
|
+
}, Readonly<import('.').TtNavAnchorProps> & Readonly<{
|
|
33
30
|
onChange?: ((key: string) => any) | undefined;
|
|
34
31
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
35
32
|
}>, {}, {}, {}, {}, {
|
|
@@ -46,10 +43,10 @@ export declare const TtNavAnchor: SFCWithInstall<{
|
|
|
46
43
|
__isFragment?: never;
|
|
47
44
|
__isTeleport?: never;
|
|
48
45
|
__isSuspense?: never;
|
|
49
|
-
} & ComponentOptionsBase<Readonly<
|
|
46
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('.').TtNavAnchorProps> & Readonly<{
|
|
50
47
|
onChange?: ((key: string) => any) | undefined;
|
|
51
48
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
52
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
50
|
change: (key: string) => any;
|
|
54
51
|
"update:modelValue": (key: string) => any;
|
|
55
52
|
}, string, {
|
|
@@ -62,11 +59,11 @@ export declare const TtNavAnchor: SFCWithInstall<{
|
|
|
62
59
|
modelValue: string;
|
|
63
60
|
badgeCounts: Record<string, number>;
|
|
64
61
|
teleportTo: string | HTMLElement;
|
|
65
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
62
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
66
63
|
$slots: Readonly<{
|
|
67
|
-
description?: (scope: NavAnchorItemScope) => VNodeChild;
|
|
64
|
+
description?: (scope: import('.').NavAnchorItemScope) => import('vue').VNodeChild;
|
|
68
65
|
}> & {
|
|
69
|
-
description?: (scope: NavAnchorItemScope) => VNodeChild;
|
|
66
|
+
description?: (scope: import('.').NavAnchorItemScope) => import('vue').VNodeChild;
|
|
70
67
|
};
|
|
71
68
|
})> & Record<string, any>;
|
|
72
69
|
export type { NavAnchorItem, NavAnchorItemScope, NavAnchorTitle, NavAnchorTitleRender, NavAnchorTitleRenderResult, TtNavAnchorProps, } from './src/types';
|