@qqt-product/ui 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +74893 -72513
- package/dist/index.umd.js +143 -161
- package/dist/lib/components/audit-modal/index.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/afterSignModal.vue.d.ts +232 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +15 -4
- package/dist/lib/components/basicTitle/index.d.ts +96 -0
- package/dist/lib/components/basicTitle/src/BasicHelp.d.ts +99 -0
- package/dist/lib/components/basicTitle/src/BasicTitle.vue.d.ts +123 -0
- package/dist/lib/components/breadcrumb/index.d.ts +2 -7
- package/dist/lib/components/card-list-layout/index.d.ts +1 -1
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +3 -3
- package/dist/lib/components/cascader/src/cascader-types.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -3
- package/dist/lib/components/checkbox/index.d.ts +4 -4
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/dist/lib/components/code-editor-model/index.d.ts +5 -0
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +23 -9
- package/dist/lib/components/countdown/index.d.ts +2 -2
- package/dist/lib/components/countdown/src/countdown.d.ts +2 -2
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/custom-remote-select/src/type.d.ts +7 -0
- package/dist/lib/components/detail-grid/index.d.ts +14 -4
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +14 -4
- package/dist/lib/components/edit-form/index.d.ts +2 -2
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/dist/lib/components/edit-grid/index.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +1 -0
- package/dist/lib/components/empty/index.d.ts +2 -2
- package/dist/lib/components/flow-view/index.d.ts +1 -1
- package/dist/lib/components/flow-view/src/flow-view.d.ts +1 -1
- package/dist/lib/components/import-modal/index.d.ts +1 -1
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
- package/dist/lib/components/index.d.ts +6 -1
- package/dist/lib/components/ladder-price/index.d.ts +2 -2
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +2 -2
- package/dist/lib/components/layout/index.d.ts +8 -3
- package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +8 -3
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +7 -2
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +7 -2
- package/dist/lib/components/layout-anchor/index.d.ts +5 -0
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +5 -0
- package/dist/lib/components/layout-pattern/index.d.ts +7 -2
- package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +1 -1
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +7 -2
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +6 -6
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/menu/index.d.ts +2 -80
- package/dist/lib/components/modal/index.d.ts +1364 -0
- package/dist/lib/components/modal/src/BasicModal.vue.d.ts +1358 -0
- package/dist/lib/components/modal/src/components/Modal.d.ts +255 -0
- package/dist/lib/components/modal/src/components/ModalClose.vue.d.ts +56 -0
- package/dist/lib/components/modal/src/components/ModalFooter.vue.d.ts +262 -0
- package/dist/lib/components/modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/dist/lib/components/modal/src/components/ModalWrapper.vue.d.ts +102 -0
- package/dist/lib/components/modal/src/hooks/useModal.d.ts +6 -0
- package/dist/lib/components/modal/src/hooks/useModalContext.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalDrag.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/dist/lib/components/modal/src/props.d.ts +150 -0
- package/dist/lib/components/modal/src/typing.d.ts +204 -0
- package/dist/lib/components/page-layout/src/util.d.ts +18 -2
- package/dist/lib/components/radio/index.d.ts +4 -4
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/dist/lib/components/relation-graph/index.d.ts +6 -0
- package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +89 -0
- package/dist/lib/components/remote-select/index.d.ts +2 -2
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +2 -2
- package/dist/lib/components/sale-template/index.d.ts +2 -1
- package/dist/lib/components/scrollContainer/index.d.ts +14 -0
- package/dist/lib/components/scrollContainer/src/ScrollContainer.vue.d.ts +10 -0
- package/dist/lib/components/scrollContainer/src/typing.d.ts +17 -0
- package/dist/lib/components/scrollbar/index.d.ts +80 -0
- package/dist/lib/components/scrollbar/src/Scrollbar.vue.d.ts +73 -0
- package/dist/lib/components/scrollbar/src/bar.d.ts +15 -0
- package/dist/lib/components/scrollbar/src/types.d.ts +18 -0
- package/dist/lib/components/scrollbar/src/util.d.ts +8 -0
- package/dist/lib/components/select/index.d.ts +2 -2
- package/dist/lib/components/select/src/select.vue.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +2 -2
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +2 -2
- package/dist/lib/components/tree-select/index.d.ts +2 -2
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +2 -2
- package/dist/lib/components/upload-file/index.d.ts +4 -4
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +4 -4
- package/dist/lib/components/upload-image/index.d.ts +4 -3
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +4 -3
- package/dist/lib/hooks/core/useAttrs.d.ts +9 -0
- package/dist/lib/hooks/core/useContext.d.ts +11 -0
- package/dist/lib/hooks/core/useTimeout.d.ts +11 -0
- package/dist/lib/hooks/event/useScrollTo.d.ts +10 -0
- package/dist/lib/hooks/event/useWindowSizeFn.d.ts +7 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/types/index.d.ts +32 -0
- package/dist/lib/utils/domUtils.d.ts +36 -0
- package/dist/lib/utils/event/index.d.ts +3 -0
- package/dist/lib/utils/helper/tsxHelper.d.ts +13 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/is.d.ts +22 -0
- package/dist/lib/utils/log.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +15 -13
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import type { ModalWrapperProps, ButtonProps } from '../typing';
|
|
2
|
+
import type { DefineComponent, PropType, VNodeChild, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<Omit<{
|
|
4
|
+
visible: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
scrollTop: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
height: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
};
|
|
14
|
+
minHeight: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
draggable: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
centered: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
};
|
|
24
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
25
|
+
modalHeaderHeight: NumberConstructor;
|
|
26
|
+
modalFooterHeight: NumberConstructor;
|
|
27
|
+
} & {
|
|
28
|
+
defaultFullscreen: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
};
|
|
31
|
+
canFullscreen: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
wrapperFooterOffset: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
helpMessage: PropType<string | string[]>;
|
|
40
|
+
useWrapper: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
loading: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
loadingTip: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
};
|
|
50
|
+
showCancelBtn: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
showOkBtn: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
wrapperProps: PropType<Partial<ModalWrapperProps>>;
|
|
59
|
+
afterClose: PropType<() => Promise<JSX.Element | VNodeChild>>;
|
|
60
|
+
bodyStyle: PropType<CSSProperties>;
|
|
61
|
+
closable: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
closeIcon: PropType<JSX.Element | VNodeChild>;
|
|
66
|
+
confirmLoading: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
};
|
|
69
|
+
destroyOnClose: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
};
|
|
72
|
+
footer: PropType<JSX.Element | VNodeChild>;
|
|
73
|
+
getContainer: PropType<() => any>;
|
|
74
|
+
mask: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
maskClosable: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
keyboard: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
maskStyle: PropType<CSSProperties>;
|
|
87
|
+
okType: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
okButtonProps: PropType<ButtonProps>;
|
|
92
|
+
cancelButtonProps: PropType<ButtonProps>;
|
|
93
|
+
title: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
};
|
|
96
|
+
visible: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
};
|
|
99
|
+
open: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
};
|
|
102
|
+
width: PropType<string | number>;
|
|
103
|
+
wrapClassName: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
zIndex: {
|
|
108
|
+
type: NumberConstructor;
|
|
109
|
+
};
|
|
110
|
+
maxHeight: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
};
|
|
113
|
+
enableComment: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
}, "visible">, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "cancel"[], "cancel", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<Omit<{
|
|
118
|
+
visible: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
};
|
|
121
|
+
scrollTop: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
height: {
|
|
126
|
+
type: NumberConstructor;
|
|
127
|
+
};
|
|
128
|
+
minHeight: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
};
|
|
131
|
+
draggable: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
centered: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
};
|
|
138
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
139
|
+
modalHeaderHeight: NumberConstructor;
|
|
140
|
+
modalFooterHeight: NumberConstructor;
|
|
141
|
+
} & {
|
|
142
|
+
defaultFullscreen: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
};
|
|
145
|
+
canFullscreen: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
wrapperFooterOffset: {
|
|
150
|
+
type: NumberConstructor;
|
|
151
|
+
default: number;
|
|
152
|
+
};
|
|
153
|
+
helpMessage: PropType<string | string[]>;
|
|
154
|
+
useWrapper: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
loading: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
};
|
|
161
|
+
loadingTip: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
};
|
|
164
|
+
showCancelBtn: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
showOkBtn: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
wrapperProps: PropType<Partial<ModalWrapperProps>>;
|
|
173
|
+
afterClose: PropType<() => Promise<JSX.Element | VNodeChild>>;
|
|
174
|
+
bodyStyle: PropType<CSSProperties>;
|
|
175
|
+
closable: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
closeIcon: PropType<JSX.Element | VNodeChild>;
|
|
180
|
+
confirmLoading: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
};
|
|
183
|
+
destroyOnClose: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
};
|
|
186
|
+
footer: PropType<JSX.Element | VNodeChild>;
|
|
187
|
+
getContainer: PropType<() => any>;
|
|
188
|
+
mask: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
maskClosable: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
keyboard: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
maskStyle: PropType<CSSProperties>;
|
|
201
|
+
okType: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
okButtonProps: PropType<ButtonProps>;
|
|
206
|
+
cancelButtonProps: PropType<ButtonProps>;
|
|
207
|
+
title: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
};
|
|
210
|
+
visible: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
};
|
|
213
|
+
open: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
};
|
|
216
|
+
width: PropType<string | number>;
|
|
217
|
+
wrapClassName: {
|
|
218
|
+
type: StringConstructor;
|
|
219
|
+
default: string;
|
|
220
|
+
};
|
|
221
|
+
zIndex: {
|
|
222
|
+
type: NumberConstructor;
|
|
223
|
+
};
|
|
224
|
+
maxHeight: {
|
|
225
|
+
type: NumberConstructor;
|
|
226
|
+
};
|
|
227
|
+
enableComment: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
}, "visible">>> & {
|
|
232
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
233
|
+
}, {
|
|
234
|
+
mask: boolean;
|
|
235
|
+
loading: boolean;
|
|
236
|
+
open: boolean;
|
|
237
|
+
destroyOnClose: boolean;
|
|
238
|
+
confirmLoading: boolean;
|
|
239
|
+
useWrapper: boolean;
|
|
240
|
+
scrollTop: boolean;
|
|
241
|
+
draggable: boolean;
|
|
242
|
+
centered: boolean;
|
|
243
|
+
defaultFullscreen: boolean;
|
|
244
|
+
canFullscreen: boolean;
|
|
245
|
+
wrapperFooterOffset: number;
|
|
246
|
+
showCancelBtn: boolean;
|
|
247
|
+
showOkBtn: boolean;
|
|
248
|
+
closable: boolean;
|
|
249
|
+
maskClosable: boolean;
|
|
250
|
+
keyboard: boolean;
|
|
251
|
+
okType: string;
|
|
252
|
+
wrapClassName: string;
|
|
253
|
+
enableComment: boolean;
|
|
254
|
+
}, {}>;
|
|
255
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../utils/type';
|
|
2
|
+
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
canFullscreen: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
fullScreen: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
};
|
|
11
|
+
enableComment: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
commentSpan: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
srmI18n: SrmI18n;
|
|
21
|
+
getClass: ComputedRef<(string | {
|
|
22
|
+
[x: string]: boolean;
|
|
23
|
+
})[]>;
|
|
24
|
+
prefixCls: string;
|
|
25
|
+
handleCancel: (e: Event) => void;
|
|
26
|
+
handleFullScreen: (e: Event) => void;
|
|
27
|
+
handleOpenComment: (e: Event) => void;
|
|
28
|
+
handleCloseComment: (e: Event) => void;
|
|
29
|
+
fullScreenStatus: ComputedRef<boolean>;
|
|
30
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("cancel" | "fullscreen" | "comment")[], "cancel" | "fullscreen" | "comment", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
31
|
+
canFullscreen: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
fullScreen: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
enableComment: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
commentSpan: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
}>> & {
|
|
47
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onFullscreen?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onComment?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
fullScreen: boolean;
|
|
52
|
+
canFullscreen: boolean;
|
|
53
|
+
enableComment: boolean;
|
|
54
|
+
commentSpan: number;
|
|
55
|
+
}, {}>;
|
|
56
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../utils/type';
|
|
2
|
+
import type { ModalWrapperProps, ButtonProps } from '../typing';
|
|
3
|
+
import type { DefineComponent, PropType, VNodeChild, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
declare const _sfc_main: DefineComponent<{
|
|
5
|
+
visible: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
};
|
|
8
|
+
scrollTop: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
height: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
};
|
|
15
|
+
minHeight: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
};
|
|
18
|
+
draggable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
centered: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
26
|
+
modalHeaderHeight: NumberConstructor;
|
|
27
|
+
modalFooterHeight: NumberConstructor;
|
|
28
|
+
} & {
|
|
29
|
+
defaultFullscreen: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
canFullscreen: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
wrapperFooterOffset: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
helpMessage: PropType<string | string[]>;
|
|
41
|
+
useWrapper: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
};
|
|
48
|
+
loadingTip: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
showCancelBtn: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
showOkBtn: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
wrapperProps: PropType<Partial<ModalWrapperProps>>;
|
|
60
|
+
afterClose: PropType<() => Promise<JSX.Element | VNodeChild>>;
|
|
61
|
+
bodyStyle: PropType<CSSProperties>;
|
|
62
|
+
closable: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
closeIcon: PropType<JSX.Element | VNodeChild>;
|
|
67
|
+
confirmLoading: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
};
|
|
70
|
+
destroyOnClose: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
};
|
|
73
|
+
footer: PropType<JSX.Element | VNodeChild>;
|
|
74
|
+
getContainer: PropType<() => any>;
|
|
75
|
+
mask: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
maskClosable: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
keyboard: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
maskStyle: PropType<CSSProperties>;
|
|
88
|
+
okType: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
okButtonProps: PropType<ButtonProps>;
|
|
93
|
+
cancelButtonProps: PropType<ButtonProps>;
|
|
94
|
+
title: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
};
|
|
97
|
+
visible: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
};
|
|
100
|
+
open: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
width: PropType<string | number>;
|
|
104
|
+
wrapClassName: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
zIndex: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
};
|
|
111
|
+
maxHeight: {
|
|
112
|
+
type: NumberConstructor;
|
|
113
|
+
};
|
|
114
|
+
enableComment: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
}, {
|
|
119
|
+
srmI18n: SrmI18n;
|
|
120
|
+
handleOk: (e: Event) => void;
|
|
121
|
+
handleCancel: (e: Event) => void;
|
|
122
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("cancel" | "ok")[], "cancel" | "ok", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
123
|
+
visible: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
};
|
|
126
|
+
scrollTop: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
height: {
|
|
131
|
+
type: NumberConstructor;
|
|
132
|
+
};
|
|
133
|
+
minHeight: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
};
|
|
136
|
+
draggable: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
centered: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
};
|
|
143
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
144
|
+
modalHeaderHeight: NumberConstructor;
|
|
145
|
+
modalFooterHeight: NumberConstructor;
|
|
146
|
+
} & {
|
|
147
|
+
defaultFullscreen: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
};
|
|
150
|
+
canFullscreen: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
wrapperFooterOffset: {
|
|
155
|
+
type: NumberConstructor;
|
|
156
|
+
default: number;
|
|
157
|
+
};
|
|
158
|
+
helpMessage: PropType<string | string[]>;
|
|
159
|
+
useWrapper: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
loading: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
};
|
|
166
|
+
loadingTip: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
};
|
|
169
|
+
showCancelBtn: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
showOkBtn: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
wrapperProps: PropType<Partial<ModalWrapperProps>>;
|
|
178
|
+
afterClose: PropType<() => Promise<JSX.Element | VNodeChild>>;
|
|
179
|
+
bodyStyle: PropType<CSSProperties>;
|
|
180
|
+
closable: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
closeIcon: PropType<JSX.Element | VNodeChild>;
|
|
185
|
+
confirmLoading: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
};
|
|
188
|
+
destroyOnClose: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
};
|
|
191
|
+
footer: PropType<JSX.Element | VNodeChild>;
|
|
192
|
+
getContainer: PropType<() => any>;
|
|
193
|
+
mask: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
maskClosable: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
keyboard: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
maskStyle: PropType<CSSProperties>;
|
|
206
|
+
okType: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
okButtonProps: PropType<ButtonProps>;
|
|
211
|
+
cancelButtonProps: PropType<ButtonProps>;
|
|
212
|
+
title: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
};
|
|
215
|
+
visible: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
};
|
|
218
|
+
open: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
};
|
|
221
|
+
width: PropType<string | number>;
|
|
222
|
+
wrapClassName: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
default: string;
|
|
225
|
+
};
|
|
226
|
+
zIndex: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
};
|
|
229
|
+
maxHeight: {
|
|
230
|
+
type: NumberConstructor;
|
|
231
|
+
};
|
|
232
|
+
enableComment: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
236
|
+
}>> & {
|
|
237
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
238
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
mask: boolean;
|
|
241
|
+
visible: boolean;
|
|
242
|
+
loading: boolean;
|
|
243
|
+
open: boolean;
|
|
244
|
+
destroyOnClose: boolean;
|
|
245
|
+
confirmLoading: boolean;
|
|
246
|
+
useWrapper: boolean;
|
|
247
|
+
scrollTop: boolean;
|
|
248
|
+
draggable: boolean;
|
|
249
|
+
centered: boolean;
|
|
250
|
+
defaultFullscreen: boolean;
|
|
251
|
+
canFullscreen: boolean;
|
|
252
|
+
wrapperFooterOffset: number;
|
|
253
|
+
showCancelBtn: boolean;
|
|
254
|
+
showOkBtn: boolean;
|
|
255
|
+
closable: boolean;
|
|
256
|
+
maskClosable: boolean;
|
|
257
|
+
keyboard: boolean;
|
|
258
|
+
okType: string;
|
|
259
|
+
wrapClassName: string;
|
|
260
|
+
enableComment: boolean;
|
|
261
|
+
}, {}>;
|
|
262
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<{
|
|
3
|
+
helpMessage: {
|
|
4
|
+
type: PropType<string | string[]>;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "dblclick"[], "dblclick", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
10
|
+
helpMessage: {
|
|
11
|
+
type: PropType<string | string[]>;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
}>> & {
|
|
17
|
+
onDblclick?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, CSSProperties, ComponentPublicInstance } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<{
|
|
3
|
+
loading: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
};
|
|
6
|
+
useWrapper: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
modalHeaderHeight: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
modalFooterHeight: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
minHeight: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
maxHeight: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
height: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
footerOffset: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
visible: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
fullScreen: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
};
|
|
39
|
+
loadingTip: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
wrapperRef: Ref<ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null>;
|
|
44
|
+
spinRef: Nullable<T>;
|
|
45
|
+
spinStyle: ComputedRef<CSSProperties>;
|
|
46
|
+
scrollTop: () => Promise<void>;
|
|
47
|
+
setModalHeight: (option?: any) => Promise<void>;
|
|
48
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("height-change" | "ext-height")[], "height-change" | "ext-height", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
49
|
+
loading: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
52
|
+
useWrapper: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
modalHeaderHeight: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
modalFooterHeight: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
minHeight: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
68
|
+
maxHeight: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: null;
|
|
71
|
+
};
|
|
72
|
+
height: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
};
|
|
75
|
+
footerOffset: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
visible: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
};
|
|
82
|
+
fullScreen: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
};
|
|
85
|
+
loadingTip: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
};
|
|
88
|
+
}>> & {
|
|
89
|
+
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
"onExt-height"?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
visible: boolean;
|
|
93
|
+
loading: boolean;
|
|
94
|
+
maxHeight: number;
|
|
95
|
+
footerOffset: number;
|
|
96
|
+
modalHeaderHeight: number;
|
|
97
|
+
modalFooterHeight: number;
|
|
98
|
+
minHeight: number;
|
|
99
|
+
fullScreen: boolean;
|
|
100
|
+
useWrapper: boolean;
|
|
101
|
+
}, {}>;
|
|
102
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UseModalReturnType, UseModalInnerReturnType } from '../typing';
|
|
2
|
+
/**
|
|
3
|
+
* @description: Applicable to independent modal and call outside
|
|
4
|
+
*/
|
|
5
|
+
export declare function useModal(): UseModalReturnType;
|
|
6
|
+
export declare const useModalInner: (callbackFn?: Fn) => UseModalInnerReturnType;
|