@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,3 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ButtonProps } from 'element-plus';
|
|
3
|
+
import { TipConfig } from '../../../../directives/disabled-tip';
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
5
|
attrs: Partial<{}>;
|
|
3
6
|
slots: Readonly<{
|
|
@@ -15,7 +18,7 @@ declare function __VLS_template(): {
|
|
|
15
18
|
rootEl: HTMLDivElement;
|
|
16
19
|
};
|
|
17
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component:
|
|
21
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<Pick<{
|
|
19
22
|
testId: any;
|
|
20
23
|
visible: {
|
|
21
24
|
type: BooleanConstructor;
|
|
@@ -35,7 +38,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
35
38
|
type: BooleanConstructor;
|
|
36
39
|
default: boolean;
|
|
37
40
|
};
|
|
38
|
-
closeFunc:
|
|
41
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
39
42
|
draggable: {
|
|
40
43
|
type: BooleanConstructor;
|
|
41
44
|
default: boolean;
|
|
@@ -74,23 +77,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
74
77
|
cancelLoading: {
|
|
75
78
|
type: BooleanConstructor;
|
|
76
79
|
};
|
|
77
|
-
width:
|
|
80
|
+
width: PropType<string | number>;
|
|
78
81
|
top: {
|
|
79
82
|
type: StringConstructor;
|
|
80
83
|
};
|
|
81
84
|
size: {
|
|
82
|
-
type:
|
|
85
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
83
86
|
default: string;
|
|
84
87
|
};
|
|
85
88
|
okButtonProps: {
|
|
86
|
-
type:
|
|
87
|
-
disabledTip?:
|
|
89
|
+
type: PropType<Partial< ButtonProps> & {
|
|
90
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
88
91
|
}>;
|
|
89
|
-
default: Partial<
|
|
92
|
+
default: Partial< ButtonProps>;
|
|
90
93
|
};
|
|
91
94
|
cancelButtonProps: {
|
|
92
|
-
type:
|
|
93
|
-
default: Partial<
|
|
95
|
+
type: PropType<Partial< ButtonProps>>;
|
|
96
|
+
default: Partial< ButtonProps>;
|
|
94
97
|
};
|
|
95
98
|
isBottom: {
|
|
96
99
|
type: BooleanConstructor;
|
|
@@ -100,9 +103,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
100
103
|
type: BooleanConstructor;
|
|
101
104
|
default: () => boolean | undefined;
|
|
102
105
|
};
|
|
103
|
-
}, "cancelText" | "okText" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps">>, {}, {}, {}, {},
|
|
106
|
+
}, "cancelText" | "okText" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps">>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
104
107
|
cancel: (e: Event) => any;
|
|
105
|
-
}, string,
|
|
108
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<Pick<{
|
|
106
109
|
testId: any;
|
|
107
110
|
visible: {
|
|
108
111
|
type: BooleanConstructor;
|
|
@@ -122,7 +125,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
122
125
|
type: BooleanConstructor;
|
|
123
126
|
default: boolean;
|
|
124
127
|
};
|
|
125
|
-
closeFunc:
|
|
128
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
126
129
|
draggable: {
|
|
127
130
|
type: BooleanConstructor;
|
|
128
131
|
default: boolean;
|
|
@@ -161,23 +164,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
161
164
|
cancelLoading: {
|
|
162
165
|
type: BooleanConstructor;
|
|
163
166
|
};
|
|
164
|
-
width:
|
|
167
|
+
width: PropType<string | number>;
|
|
165
168
|
top: {
|
|
166
169
|
type: StringConstructor;
|
|
167
170
|
};
|
|
168
171
|
size: {
|
|
169
|
-
type:
|
|
172
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
170
173
|
default: string;
|
|
171
174
|
};
|
|
172
175
|
okButtonProps: {
|
|
173
|
-
type:
|
|
174
|
-
disabledTip?:
|
|
176
|
+
type: PropType<Partial< ButtonProps> & {
|
|
177
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
175
178
|
}>;
|
|
176
|
-
default: Partial<
|
|
179
|
+
default: Partial< ButtonProps>;
|
|
177
180
|
};
|
|
178
181
|
cancelButtonProps: {
|
|
179
|
-
type:
|
|
180
|
-
default: Partial<
|
|
182
|
+
type: PropType<Partial< ButtonProps>>;
|
|
183
|
+
default: Partial< ButtonProps>;
|
|
181
184
|
};
|
|
182
185
|
isBottom: {
|
|
183
186
|
type: BooleanConstructor;
|
|
@@ -196,11 +199,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
196
199
|
showOkBtn: boolean;
|
|
197
200
|
confirmLoading: boolean;
|
|
198
201
|
cancelLoading: boolean;
|
|
199
|
-
okButtonProps: Partial<
|
|
200
|
-
disabledTip?:
|
|
202
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
203
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
201
204
|
};
|
|
202
|
-
cancelButtonProps: Partial<
|
|
203
|
-
}, {}, {}, {}, string,
|
|
205
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
206
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
204
207
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
205
208
|
export default _default;
|
|
206
209
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: Readonly<{
|
|
@@ -13,15 +14,15 @@ declare function __VLS_template(): {
|
|
|
13
14
|
rootEl: HTMLDivElement;
|
|
14
15
|
};
|
|
15
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
declare const __VLS_component:
|
|
17
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
17
18
|
/** 标题 */
|
|
18
19
|
title: any;
|
|
19
|
-
}>, {}, {}, {}, {},
|
|
20
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
21
|
/** 标题 */
|
|
21
22
|
title: any;
|
|
22
23
|
}>> & Readonly<{}>, {
|
|
23
24
|
title: any;
|
|
24
|
-
}, {}, {}, {}, string,
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
27
|
export default _default;
|
|
27
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ButtonProps } from 'element-plus';
|
|
3
|
+
import { TipConfig } from '../../../../directives/disabled-tip';
|
|
1
4
|
/** 可用内容高度 = 容器高 - 顶距 - 头 - 底栏 - 底边距 */
|
|
2
5
|
declare function updateRealHeight(): void;
|
|
3
6
|
declare function onScrollBottom(): void;
|
|
@@ -12,7 +15,7 @@ declare function __VLS_template(): {
|
|
|
12
15
|
rootEl: HTMLDivElement;
|
|
13
16
|
};
|
|
14
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component:
|
|
18
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
16
19
|
/** 区域遮罩:高度相对挂载容器,不再按整屏 vh */
|
|
17
20
|
contained: {
|
|
18
21
|
type: BooleanConstructor;
|
|
@@ -37,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
37
40
|
type: BooleanConstructor;
|
|
38
41
|
default: boolean;
|
|
39
42
|
};
|
|
40
|
-
closeFunc:
|
|
43
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
41
44
|
draggable: {
|
|
42
45
|
type: BooleanConstructor;
|
|
43
46
|
default: boolean;
|
|
@@ -75,23 +78,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
75
78
|
cancelLoading: {
|
|
76
79
|
type: BooleanConstructor;
|
|
77
80
|
};
|
|
78
|
-
width:
|
|
81
|
+
width: PropType<string | number>;
|
|
79
82
|
top: {
|
|
80
83
|
type: StringConstructor;
|
|
81
84
|
};
|
|
82
85
|
size: {
|
|
83
|
-
type:
|
|
86
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
84
87
|
default: string;
|
|
85
88
|
};
|
|
86
89
|
okButtonProps: {
|
|
87
|
-
type:
|
|
88
|
-
disabledTip?:
|
|
90
|
+
type: PropType<Partial< ButtonProps> & {
|
|
91
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
89
92
|
}>;
|
|
90
|
-
default: Partial<
|
|
93
|
+
default: Partial< ButtonProps>;
|
|
91
94
|
};
|
|
92
95
|
cancelButtonProps: {
|
|
93
|
-
type:
|
|
94
|
-
default: Partial<
|
|
96
|
+
type: PropType<Partial< ButtonProps>>;
|
|
97
|
+
default: Partial< ButtonProps>;
|
|
95
98
|
};
|
|
96
99
|
isBottom: {
|
|
97
100
|
type: BooleanConstructor;
|
|
@@ -104,10 +107,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
104
107
|
}>, {
|
|
105
108
|
onScrollBottom: typeof onScrollBottom;
|
|
106
109
|
setModalHeight: typeof updateRealHeight;
|
|
107
|
-
elm:
|
|
108
|
-
}, {}, {}, {},
|
|
110
|
+
elm: Ref<any, any>;
|
|
111
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
109
112
|
"is-scroll": (...args: any[]) => void;
|
|
110
|
-
}, string,
|
|
113
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
111
114
|
/** 区域遮罩:高度相对挂载容器,不再按整屏 vh */
|
|
112
115
|
contained: {
|
|
113
116
|
type: BooleanConstructor;
|
|
@@ -132,7 +135,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
132
135
|
type: BooleanConstructor;
|
|
133
136
|
default: boolean;
|
|
134
137
|
};
|
|
135
|
-
closeFunc:
|
|
138
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
136
139
|
draggable: {
|
|
137
140
|
type: BooleanConstructor;
|
|
138
141
|
default: boolean;
|
|
@@ -170,23 +173,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
170
173
|
cancelLoading: {
|
|
171
174
|
type: BooleanConstructor;
|
|
172
175
|
};
|
|
173
|
-
width:
|
|
176
|
+
width: PropType<string | number>;
|
|
174
177
|
top: {
|
|
175
178
|
type: StringConstructor;
|
|
176
179
|
};
|
|
177
180
|
size: {
|
|
178
|
-
type:
|
|
181
|
+
type: PropType<"medium" | "small" | "mini">;
|
|
179
182
|
default: string;
|
|
180
183
|
};
|
|
181
184
|
okButtonProps: {
|
|
182
|
-
type:
|
|
183
|
-
disabledTip?:
|
|
185
|
+
type: PropType<Partial< ButtonProps> & {
|
|
186
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
184
187
|
}>;
|
|
185
|
-
default: Partial<
|
|
188
|
+
default: Partial< ButtonProps>;
|
|
186
189
|
};
|
|
187
190
|
cancelButtonProps: {
|
|
188
|
-
type:
|
|
189
|
-
default: Partial<
|
|
191
|
+
type: PropType<Partial< ButtonProps>>;
|
|
192
|
+
default: Partial< ButtonProps>;
|
|
190
193
|
};
|
|
191
194
|
isBottom: {
|
|
192
195
|
type: BooleanConstructor;
|
|
@@ -219,12 +222,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
219
222
|
showOkBtn: boolean;
|
|
220
223
|
confirmLoading: boolean;
|
|
221
224
|
cancelLoading: boolean;
|
|
222
|
-
okButtonProps: Partial<
|
|
223
|
-
disabledTip?:
|
|
225
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
226
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
224
227
|
};
|
|
225
|
-
cancelButtonProps: Partial<
|
|
228
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
226
229
|
isBottom: boolean;
|
|
227
|
-
}, {}, {}, {}, string,
|
|
230
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
228
231
|
wrapperRef: HTMLDivElement;
|
|
229
232
|
}, HTMLDivElement>;
|
|
230
233
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { ModalApiOptions, ModalProps, TtModalExtendedModalApi } from '../typing';
|
|
2
|
-
import { App, Component } from 'vue';
|
|
1
|
+
import { ModalApiOptions, ModalProps, TtModalExtendedModalApi, ModalMethods } from '../typing';
|
|
2
|
+
import { App, Component, DefineSetupFnComponent, PublicProps, TransitionProps, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
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';
|
|
3
6
|
export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
|
|
4
7
|
/**
|
|
5
8
|
* modal 可选hooks
|
|
6
9
|
*/
|
|
7
|
-
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [
|
|
10
|
+
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [ DefineSetupFnComponent<TParentModalProps, {}, {}, TParentModalProps & {}, PublicProps>, TtModalExtendedModalApi] | readonly [ DefineSetupFnComponent<ModalProps, {}, {}, Partial<{
|
|
8
11
|
title: any;
|
|
9
12
|
visible: boolean;
|
|
10
|
-
appendTo:
|
|
11
|
-
transition:
|
|
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>;
|
|
12
15
|
size: "small" | "medium" | "mini";
|
|
13
16
|
center: boolean;
|
|
14
17
|
height: any;
|
|
15
18
|
draggable: boolean;
|
|
16
|
-
showClose:
|
|
19
|
+
showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
17
20
|
loading: boolean;
|
|
18
21
|
modelValue: boolean;
|
|
19
|
-
closeOnPressEscape:
|
|
22
|
+
closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
23
|
scrollTop: boolean;
|
|
21
24
|
minHeight: any;
|
|
22
25
|
showFooter: boolean;
|
|
23
26
|
fullscreen: boolean;
|
|
24
|
-
overflow:
|
|
27
|
+
overflow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
25
28
|
testId: any;
|
|
26
29
|
modal: boolean;
|
|
27
30
|
cancelText: string;
|
|
@@ -31,35 +34,35 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
31
34
|
showOkBtn: boolean;
|
|
32
35
|
confirmLoading: boolean;
|
|
33
36
|
cancelLoading: boolean;
|
|
34
|
-
okButtonProps: Partial<
|
|
35
|
-
disabledTip?:
|
|
37
|
+
okButtonProps: Partial< ButtonProps> & {
|
|
38
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
36
39
|
};
|
|
37
|
-
cancelButtonProps: Partial<
|
|
40
|
+
cancelButtonProps: Partial< ButtonProps>;
|
|
38
41
|
isBottom: boolean;
|
|
39
42
|
appendToBody: boolean;
|
|
40
43
|
destroyOnClose: boolean;
|
|
41
|
-
closeOnClickModal:
|
|
42
|
-
lockScroll:
|
|
44
|
+
closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
45
|
+
lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
43
46
|
modalPenetrable: boolean;
|
|
44
47
|
openDelay: number;
|
|
45
48
|
closeDelay: number;
|
|
46
49
|
trapFocus: boolean;
|
|
47
50
|
headerAriaLevel: string;
|
|
48
|
-
alignCenter:
|
|
51
|
+
alignCenter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
49
52
|
ariaLevel: string;
|
|
50
53
|
modalApi: TtModalExtendedModalApi;
|
|
51
54
|
}> & Omit<{
|
|
52
55
|
readonly title: any;
|
|
53
56
|
readonly visible: boolean;
|
|
54
|
-
readonly appendTo:
|
|
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>;
|
|
55
58
|
readonly size: "small" | "medium" | "mini";
|
|
56
59
|
readonly center: boolean;
|
|
57
60
|
readonly height: any;
|
|
58
61
|
readonly draggable: boolean;
|
|
59
|
-
readonly showClose:
|
|
62
|
+
readonly showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
60
63
|
readonly loading: boolean;
|
|
61
64
|
readonly modelValue: boolean;
|
|
62
|
-
readonly closeOnPressEscape:
|
|
65
|
+
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
63
66
|
readonly scrollTop: boolean;
|
|
64
67
|
readonly minHeight: any;
|
|
65
68
|
readonly showFooter: boolean;
|
|
@@ -73,15 +76,15 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
73
76
|
readonly showOkBtn: boolean;
|
|
74
77
|
readonly confirmLoading: boolean;
|
|
75
78
|
readonly cancelLoading: boolean;
|
|
76
|
-
readonly okButtonProps: Partial<
|
|
77
|
-
disabledTip?:
|
|
79
|
+
readonly okButtonProps: Partial< ButtonProps> & {
|
|
80
|
+
disabledTip?: TipConfig | TipConfig[];
|
|
78
81
|
};
|
|
79
|
-
readonly cancelButtonProps: Partial<
|
|
82
|
+
readonly cancelButtonProps: Partial< ButtonProps>;
|
|
80
83
|
readonly isBottom: boolean;
|
|
81
84
|
readonly appendToBody: boolean;
|
|
82
85
|
readonly destroyOnClose: boolean;
|
|
83
|
-
readonly closeOnClickModal:
|
|
84
|
-
readonly lockScroll:
|
|
86
|
+
readonly closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
|
+
readonly lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
88
|
readonly modalPenetrable: boolean;
|
|
86
89
|
readonly openDelay: number;
|
|
87
90
|
readonly closeDelay: number;
|
|
@@ -90,21 +93,21 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
90
93
|
readonly ariaLevel: string;
|
|
91
94
|
readonly top?: string | undefined;
|
|
92
95
|
readonly zIndex?: number | undefined;
|
|
93
|
-
readonly transition?:
|
|
96
|
+
readonly transition?: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | null)[], unknown, unknown> | undefined;
|
|
94
97
|
readonly width?: string | number | undefined;
|
|
95
|
-
readonly closeIcon?:
|
|
96
|
-
readonly beforeClose?:
|
|
97
|
-
readonly overflow?:
|
|
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;
|
|
98
101
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
99
102
|
readonly loadingTip?: string | undefined;
|
|
100
103
|
readonly modalClass?: string | undefined;
|
|
101
|
-
readonly alignCenter?:
|
|
104
|
+
readonly alignCenter?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
102
105
|
readonly headerClass?: string | undefined;
|
|
103
106
|
readonly bodyClass?: string | undefined;
|
|
104
107
|
readonly footerClass?: string | undefined;
|
|
105
108
|
readonly modalApi?: TtModalExtendedModalApi | undefined;
|
|
106
109
|
readonly "onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
107
110
|
readonly "onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
108
|
-
readonly onRegister?: ((args_0:
|
|
109
|
-
} &
|
|
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< DialogProps> & {}, PublicProps>, TtModalExtendedModalApi];
|
|
110
113
|
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';
|
|
5
|
+
import { default as TtModalWrapper } from './components/ModalWrapper';
|
|
6
6
|
import { ModalApi } from './utils/modal-api';
|
|
7
7
|
/**
|
|
8
8
|
* @description: 弹窗对外暴露的方法
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ModalApiOptions, ModalMethods, ModalRenderState } from '../typing';
|
|
2
2
|
import { Store } from '@tanstack/vue-store';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
3
4
|
export type ApiType = Pick<ModalApiOptions, "onClose" | "onVisibleChange" | "onOk" | "onReceiveSharedData" | "onClosed">;
|
|
4
5
|
/**
|
|
5
6
|
* 弹窗的API类
|
|
@@ -91,7 +92,7 @@ export declare class ModalApi {
|
|
|
91
92
|
* 获取弹窗的可见状态
|
|
92
93
|
* @returns 弹窗的可见状态
|
|
93
94
|
*/
|
|
94
|
-
getVisible:
|
|
95
|
+
getVisible: ComputedRef<boolean>;
|
|
95
96
|
/**
|
|
96
97
|
* 重置弹窗高度
|
|
97
98
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
1
2
|
export declare function useModalFormSlot(slots: any): {
|
|
2
|
-
getFormSlotKeys:
|
|
3
|
-
getModalSlotKeys:
|
|
3
|
+
getFormSlotKeys: ComputedRef<(string | null)[]>;
|
|
4
|
+
getModalSlotKeys: ComputedRef<(string | null)[]>;
|
|
4
5
|
replaceModalSlotKey: (key: string | null) => string;
|
|
5
6
|
replaceFormSlotKey: (key: string | null) => string;
|
|
6
7
|
};
|
|
@@ -1,2 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Recordable } from '../../../../utils/src';
|
|
2
|
+
import { ModalFormType, TtModalFormProps } from './props';
|
|
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,7 +1,8 @@
|
|
|
1
1
|
import { TtModalExtendedModalApi } from '../tt-modal';
|
|
2
2
|
import { ModalFormApi, ModalFormType, TtModalFormProps } from './props';
|
|
3
|
+
import { DefineSetupFnComponent, PublicProps, Ref } from 'vue';
|
|
3
4
|
/** 创建普通表单或分组表单的弹窗表单。 */
|
|
4
|
-
export declare function useModalForm<TType extends ModalFormType = "form", TValues extends Record<string, any> = Record<string, any>>(options: TtModalFormProps<TType, TValues>): readonly [
|
|
5
|
-
readonly formApi:
|
|
6
|
-
readonly modalApi:
|
|
5
|
+
export declare function useModalForm<TType extends ModalFormType = "form", TValues extends Record<string, any> = Record<string, any>>(options: TtModalFormProps<TType, TValues>): readonly [ DefineSetupFnComponent<Partial<TtModalFormProps<ModalFormType>>, {}, {}, Partial<TtModalFormProps<ModalFormType>> & {}, PublicProps>, {
|
|
6
|
+
readonly formApi: Ref<ModalFormApi<TType, TValues> | undefined, ModalFormApi<TType, TValues> | undefined>;
|
|
7
|
+
readonly modalApi: Ref<TtModalExtendedModalApi | undefined, TtModalExtendedModalApi | undefined>;
|
|
7
8
|
}];
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SFCWithInstall } from '../../../../utils/src';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, VNodeChild } from 'vue';
|
|
3
|
+
import { TtNavAnchorProps, NavAnchorItemScope } from '.';
|
|
4
|
+
export declare const TtNavAnchor: SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< TtNavAnchorProps> & Readonly<{
|
|
3
6
|
onChange?: ((key: string) => any) | undefined;
|
|
4
7
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {},
|
|
8
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
6
9
|
change: (key: string) => any;
|
|
7
10
|
"update:modelValue": (key: string) => any;
|
|
8
|
-
},
|
|
11
|
+
}, PublicProps, {
|
|
9
12
|
top: number | string;
|
|
10
13
|
bottom: number | string;
|
|
11
14
|
left: number | string;
|
|
@@ -15,18 +18,18 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
15
18
|
modelValue: string;
|
|
16
19
|
badgeCounts: Record<string, number>;
|
|
17
20
|
teleportTo: string | HTMLElement;
|
|
18
|
-
}, false, {}, {},
|
|
21
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
19
22
|
sourceRef: HTMLSpanElement;
|
|
20
23
|
navRef: HTMLDivElement;
|
|
21
24
|
headerRef: HTMLDivElement;
|
|
22
|
-
}, any,
|
|
25
|
+
}, any, ComponentProvideOptions, {
|
|
23
26
|
P: {};
|
|
24
27
|
B: {};
|
|
25
28
|
D: {};
|
|
26
29
|
C: {};
|
|
27
30
|
M: {};
|
|
28
31
|
Defaults: {};
|
|
29
|
-
}, Readonly<
|
|
32
|
+
}, Readonly< TtNavAnchorProps> & Readonly<{
|
|
30
33
|
onChange?: ((key: string) => any) | undefined;
|
|
31
34
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
32
35
|
}>, {}, {}, {}, {}, {
|
|
@@ -43,10 +46,10 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
43
46
|
__isFragment?: never;
|
|
44
47
|
__isTeleport?: never;
|
|
45
48
|
__isSuspense?: never;
|
|
46
|
-
} &
|
|
49
|
+
} & ComponentOptionsBase<Readonly< TtNavAnchorProps> & Readonly<{
|
|
47
50
|
onChange?: ((key: string) => any) | undefined;
|
|
48
51
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
49
|
-
}>, {}, {}, {}, {},
|
|
52
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
53
|
change: (key: string) => any;
|
|
51
54
|
"update:modelValue": (key: string) => any;
|
|
52
55
|
}, string, {
|
|
@@ -59,11 +62,11 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
59
62
|
modelValue: string;
|
|
60
63
|
badgeCounts: Record<string, number>;
|
|
61
64
|
teleportTo: string | HTMLElement;
|
|
62
|
-
}, {}, string, {},
|
|
65
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
63
66
|
$slots: Readonly<{
|
|
64
|
-
description?: (scope:
|
|
67
|
+
description?: (scope: NavAnchorItemScope) => VNodeChild;
|
|
65
68
|
}> & {
|
|
66
|
-
description?: (scope:
|
|
69
|
+
description?: (scope: NavAnchorItemScope) => VNodeChild;
|
|
67
70
|
};
|
|
68
71
|
})> & Record<string, any>;
|
|
69
72
|
export type { NavAnchorItem, NavAnchorItemScope, NavAnchorTitle, NavAnchorTitleRender, NavAnchorTitleRenderResult, TtNavAnchorProps, } from './src/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
1
|
+
import { VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { NavAnchorItemScope, TtNavAnchorProps } from './types';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -17,10 +17,10 @@ declare function __VLS_template(): {
|
|
|
17
17
|
rootEl: any;
|
|
18
18
|
};
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component:
|
|
20
|
+
declare const __VLS_component: DefineComponent<TtNavAnchorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
21
|
change: (key: string) => any;
|
|
22
22
|
"update:modelValue": (key: string) => any;
|
|
23
|
-
}, string,
|
|
23
|
+
}, string, PublicProps, Readonly<TtNavAnchorProps> & Readonly<{
|
|
24
24
|
onChange?: ((key: string) => any) | undefined;
|
|
25
25
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
26
|
}>, {
|
|
@@ -33,7 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<TtNavAnchorProps, {
|
|
|
33
33
|
modelValue: string;
|
|
34
34
|
badgeCounts: Record<string, number>;
|
|
35
35
|
teleportTo: string | HTMLElement;
|
|
36
|
-
}, {}, {}, {}, string,
|
|
36
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
37
37
|
sourceRef: HTMLSpanElement;
|
|
38
38
|
navRef: HTMLDivElement;
|
|
39
39
|
headerRef: HTMLDivElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../../utils/src';
|
|
2
|
-
import { default as TtPanelSelectConstructor } from './src/index
|
|
2
|
+
import { default as TtPanelSelectConstructor } from './src/index';
|
|
3
3
|
export declare const TtPanelSelect: SFCWithInstall<typeof TtPanelSelectConstructor>;
|
|
4
4
|
export * from './src/types';
|
|
5
5
|
export type TtPanelSelectInsp = InstanceType<typeof TtPanelSelectConstructor>;
|