@mingto/mt-ui 1.1.32
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/README.md +19 -0
- package/dist/avatar-image/index.d.ts +86 -0
- package/dist/avatar-image/src/avatar-image.d.ts +35 -0
- package/dist/avatar-image/src/avatar-image.vue.d.ts +45 -0
- package/dist/avatar-text/index.d.ts +92 -0
- package/dist/avatar-text/src/avatar-text.d.ts +35 -0
- package/dist/avatar-text/src/avatar-text.vue.d.ts +62 -0
- package/dist/backtop/index.d.ts +103 -0
- package/dist/backtop/src/backtop.d.ts +43 -0
- package/dist/backtop/src/backtop.vue.d.ts +66 -0
- package/dist/badge/index.d.ts +117 -0
- package/dist/badge/src/badge.d.ts +48 -0
- package/dist/badge/src/badge.vue.d.ts +76 -0
- package/dist/button/index.d.ts +230 -0
- package/dist/button/src/button.d.ts +93 -0
- package/dist/button/src/button.vue.d.ts +144 -0
- package/dist/button-group/index.d.ts +18 -0
- package/dist/button-group/src/button-group.d.ts +3 -0
- package/dist/button-group/src/button-group.vue.d.ts +17 -0
- package/dist/cell/index.d.ts +157 -0
- package/dist/cell/src/cell.d.ts +56 -0
- package/dist/cell/src/cell.vue.d.ts +103 -0
- package/dist/cell-group/index.d.ts +83 -0
- package/dist/cell-group/src/cell-group.d.ts +104 -0
- package/dist/collapse-transition/index.d.ts +18 -0
- package/dist/collapse-transition/src/collapse-transition.d.ts +4 -0
- package/dist/collapse-transition/src/collapse-transition.vue.d.ts +17 -0
- package/dist/config-provider/index.d.ts +51 -0
- package/dist/config-provider/src/config-provider.d.ts +32 -0
- package/dist/dialog/index.d.ts +414 -0
- package/dist/dialog/src/dialog.d.ts +124 -0
- package/dist/dialog/src/dialog.vue.d.ts +174 -0
- package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +116 -0
- package/dist/empty/index.d.ts +86 -0
- package/dist/empty/src/empty.d.ts +35 -0
- package/dist/empty/src/empty.vue.d.ts +45 -0
- package/dist/fade-transition/index.d.ts +49 -0
- package/dist/fade-transition/src/fade-transition.d.ts +9 -0
- package/dist/fade-transition/src/fade-transition.vue.d.ts +33 -0
- package/dist/file-preview/index.d.ts +4 -0
- package/dist/file-preview/src/ai-music-preview.vue.d.ts +43 -0
- package/dist/file-preview/src/file-preview.d.ts +41 -0
- package/dist/file-preview/src/file-preview.vue.d.ts +42 -0
- package/dist/file-preview/src/iframe-preview.vue.d.ts +16 -0
- package/dist/file-preview/src/image-preview.vue.d.ts +14 -0
- package/dist/file-preview/src/method.d.ts +9 -0
- package/dist/file-preview/src/music-preview.vue.d.ts +14 -0
- package/dist/file-preview/src/video-preview.vue.d.ts +14 -0
- package/dist/hooks/dom/index.d.ts +1 -0
- package/dist/hooks/dom/use-z-index.d.ts +3 -0
- package/dist/hooks/event/index.d.ts +1 -0
- package/dist/hooks/event/use-click-outside.d.ts +2 -0
- package/dist/hooks/event/use-same-target.d.ts +5 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/locale/index.d.ts +1 -0
- package/dist/hooks/locale/use-locale.d.ts +10 -0
- package/dist/hooks/vue/index.d.ts +2 -0
- package/dist/hooks/vue/use-children.d.ts +5 -0
- package/dist/hooks/vue/use-parent.d.ts +11 -0
- package/dist/icon/assets/font/iconfont.json.d.ts +2034 -0
- package/dist/icon/index.d.ts +98 -0
- package/dist/icon/src/icon.d.ts +42 -0
- package/dist/icon/src/icon.vue.d.ts +53 -0
- package/dist/image/index.d.ts +142 -0
- package/dist/image/src/image.d.ts +50 -0
- package/dist/image/src/image.vue.d.ts +92 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.es.js +64743 -0
- package/dist/index.umd.js +64742 -0
- package/dist/infinite-scroll/index.d.ts +319 -0
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +123 -0
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +197 -0
- package/dist/loading/index.d.ts +72 -0
- package/dist/loading/src/loading.d.ts +27 -0
- package/dist/loading/src/loading.vue.d.ts +49 -0
- package/dist/locale/index.d.ts +17 -0
- package/dist/locale/lang/ar.d.ts +40 -0
- package/dist/locale/lang/en.d.ts +40 -0
- package/dist/locale/lang/ms.d.ts +40 -0
- package/dist/locale/lang/th.d.ts +40 -0
- package/dist/locale/lang/vi.d.ts +40 -0
- package/dist/locale/lang/zh-cn.d.ts +40 -0
- package/dist/locale/lang/zh-tw.d.ts +40 -0
- package/dist/message/index.d.ts +4 -0
- package/dist/message/src/instance.d.ts +16 -0
- package/dist/message/src/message.d.ts +69 -0
- package/dist/message/src/message.vue.d.ts +96 -0
- package/dist/message/src/method.d.ts +3 -0
- package/dist/overlay/index.d.ts +54 -0
- package/dist/overlay/src/overlay.d.ts +18 -0
- package/dist/overlay/src/overlay.vue.d.ts +38 -0
- package/dist/popover/index.d.ts +596 -0
- package/dist/popover/src/arrow.vue.d.ts +6 -0
- package/dist/popover/src/content.vue.d.ts +216 -0
- package/dist/popover/src/popover.d.ts +217 -0
- package/dist/popover/src/popover.vue.d.ts +344 -0
- package/dist/popover/src/trigger-ref.d.ts +17 -0
- package/dist/popover/src/trigger.vue.d.ts +59 -0
- package/dist/poster/index.d.ts +3 -0
- package/dist/poster/src/method.d.ts +51 -0
- package/dist/progress/index.d.ts +170 -0
- package/dist/progress/src/progress.d.ts +47 -0
- package/dist/progress/src/progress.vue.d.ts +109 -0
- package/dist/qrcode/index.d.ts +160 -0
- package/dist/qrcode/src/qrcode.d.ts +71 -0
- package/dist/qrcode/src/qrcode.vue.d.ts +88 -0
- package/dist/style.css +20075 -0
- package/dist/tab/index.d.ts +57 -0
- package/dist/tab/src/tab.d.ts +23 -0
- package/dist/tab/src/tab.vue.d.ts +25 -0
- package/dist/table/index.d.ts +20 -0
- package/dist/table/src/table.vue.d.ts +19 -0
- package/dist/table-column/index.d.ts +22 -0
- package/dist/table-column/src/table-column.vue.d.ts +21 -0
- package/dist/tabs/index.d.ts +71 -0
- package/dist/tabs/src/tabs.d.ts +26 -0
- package/dist/tabs/src/tabs.vue.d.ts +48 -0
- package/dist/tag/index.d.ts +118 -0
- package/dist/tag/src/tag.d.ts +44 -0
- package/dist/tag/src/tag.vue.d.ts +75 -0
- package/dist/teleport/index.d.ts +52 -0
- package/dist/teleport/src/teleport.d.ts +12 -0
- package/dist/teleport/src/teleport.vue.d.ts +38 -0
- package/dist/tooltip/index.d.ts +934 -0
- package/dist/tooltip/src/tooltip.d.ts +94 -0
- package/dist/tooltip/src/tooltip.vue.d.ts +1295 -0
- package/dist/upload/index.d.ts +982 -0
- package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +29 -0
- package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +59 -0
- package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +59 -0
- package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +47 -0
- package/dist/upload/src/trigger/upload-image-grid-trigger.vue.d.ts +45 -0
- package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +135 -0
- package/dist/upload/src/upload-config.d.ts +3 -0
- package/dist/upload/src/upload-content.d.ts +63 -0
- package/dist/upload/src/upload-content.vue.d.ts +129 -0
- package/dist/upload/src/upload-full-screen-drag.vue.d.ts +12 -0
- package/dist/upload/src/upload-image-copper.vue.d.ts +9 -0
- package/dist/upload/src/upload.d.ts +196 -0
- package/dist/upload/src/upload.vue.d.ts +825 -0
- package/dist/upload/src/use-full-scree-drag.d.ts +6 -0
- package/dist/utils/class/deferred.d.ts +7 -0
- package/dist/utils/dom/__test__/is-valid-css-value.test.d.ts +1 -0
- package/dist/utils/dom/index.d.ts +2 -0
- package/dist/utils/dom/style.d.ts +10 -0
- package/dist/utils/dom/unit.d.ts +35 -0
- package/dist/utils/function/index.d.ts +1 -0
- package/dist/utils/function/shared.d.ts +2 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/prop/index.d.ts +1 -0
- package/dist/utils/prop/size.d.ts +9 -0
- package/dist/utils/vue/children.d.ts +5 -0
- package/dist/utils/vue/index.d.ts +2 -0
- package/dist/utils/vue/install.d.ts +5 -0
- package/package.json +41 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
reference: any;
|
|
6
|
+
default: any;
|
|
7
|
+
content: any;
|
|
8
|
+
}> & {
|
|
9
|
+
reference: any;
|
|
10
|
+
default: any;
|
|
11
|
+
content: any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
|
+
trigger: {
|
|
19
|
+
type: import('vue').PropType<import('./popover').PopoverTriggerType>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
content: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
width: {
|
|
27
|
+
type: import('vue').PropType<number | string>;
|
|
28
|
+
validator: (value: number | string) => boolean;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
placement: {
|
|
32
|
+
type: import('vue').PropType<import('element-plus').Placement>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
offset: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
visible: {
|
|
44
|
+
type: import('vue').PropType<boolean | null>;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
'onUpdate:visible': {
|
|
48
|
+
type: import('vue').PropType<(visible: boolean) => void>;
|
|
49
|
+
};
|
|
50
|
+
showArrow: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
popperOptions: {
|
|
55
|
+
type: import('vue').PropType<Partial<import('element-plus').Options>>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
strategy: {
|
|
59
|
+
type: import('vue').PropType<"absolute" | "fixed">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
fallbackPlacements: {
|
|
63
|
+
type: import('vue').PropType<import('element-plus').Placement[]>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
gpuAcceleration: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
popperClass: {
|
|
71
|
+
type: import('vue').PropType<string | {
|
|
72
|
+
[x: string]: boolean;
|
|
73
|
+
} | (string | {
|
|
74
|
+
[x: string]: boolean;
|
|
75
|
+
} | (string | {
|
|
76
|
+
[x: string]: boolean;
|
|
77
|
+
} | (string | {
|
|
78
|
+
[x: string]: boolean;
|
|
79
|
+
} | (string | {
|
|
80
|
+
[x: string]: boolean;
|
|
81
|
+
} | (string | {
|
|
82
|
+
[x: string]: boolean;
|
|
83
|
+
} | (string | {
|
|
84
|
+
[x: string]: boolean;
|
|
85
|
+
} | (string | {
|
|
86
|
+
[x: string]: boolean;
|
|
87
|
+
} | (string | {
|
|
88
|
+
[x: string]: boolean;
|
|
89
|
+
} | (string | {
|
|
90
|
+
[x: string]: boolean;
|
|
91
|
+
} | (string | {
|
|
92
|
+
[x: string]: boolean;
|
|
93
|
+
} | (string | {
|
|
94
|
+
[x: string]: boolean;
|
|
95
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
showAfter: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
hideAfter: {
|
|
103
|
+
type: NumberConstructor;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
autoClose: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
popperStyle: {
|
|
111
|
+
type: import('vue').PropType<import('vue').StyleValue>;
|
|
112
|
+
default: () => {};
|
|
113
|
+
};
|
|
114
|
+
appendTo: {
|
|
115
|
+
type: import('vue').PropType<string | HTMLElement>;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
effect: {
|
|
119
|
+
type: import('vue').PropType<import('./popover').PopoverEffect>;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
rawContent: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
virtualTriggering: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
virtualRef: {
|
|
131
|
+
type: import('vue').PropType<Ref<HTMLElement | null>>;
|
|
132
|
+
default: () => null;
|
|
133
|
+
};
|
|
134
|
+
zIndex: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
};
|
|
137
|
+
enterable: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
teleported: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
}>, {
|
|
146
|
+
hide: () => void;
|
|
147
|
+
show: () => void;
|
|
148
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
149
|
+
beforeEnter: () => any;
|
|
150
|
+
beforeLeave: () => any;
|
|
151
|
+
hide: () => any;
|
|
152
|
+
show: () => any;
|
|
153
|
+
"update:visible": (args_0: boolean) => any;
|
|
154
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
155
|
+
trigger: {
|
|
156
|
+
type: import('vue').PropType<import('./popover').PopoverTriggerType>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
content: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
width: {
|
|
164
|
+
type: import('vue').PropType<number | string>;
|
|
165
|
+
validator: (value: number | string) => boolean;
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
168
|
+
placement: {
|
|
169
|
+
type: import('vue').PropType<import('element-plus').Placement>;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
disabled: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
offset: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
visible: {
|
|
181
|
+
type: import('vue').PropType<boolean | null>;
|
|
182
|
+
default: null;
|
|
183
|
+
};
|
|
184
|
+
'onUpdate:visible': {
|
|
185
|
+
type: import('vue').PropType<(visible: boolean) => void>;
|
|
186
|
+
};
|
|
187
|
+
showArrow: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
popperOptions: {
|
|
192
|
+
type: import('vue').PropType<Partial<import('element-plus').Options>>;
|
|
193
|
+
default: () => {};
|
|
194
|
+
};
|
|
195
|
+
strategy: {
|
|
196
|
+
type: import('vue').PropType<"absolute" | "fixed">;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
fallbackPlacements: {
|
|
200
|
+
type: import('vue').PropType<import('element-plus').Placement[]>;
|
|
201
|
+
default: undefined;
|
|
202
|
+
};
|
|
203
|
+
gpuAcceleration: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
popperClass: {
|
|
208
|
+
type: import('vue').PropType<string | {
|
|
209
|
+
[x: string]: boolean;
|
|
210
|
+
} | (string | {
|
|
211
|
+
[x: string]: boolean;
|
|
212
|
+
} | (string | {
|
|
213
|
+
[x: string]: boolean;
|
|
214
|
+
} | (string | {
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
} | (string | {
|
|
217
|
+
[x: string]: boolean;
|
|
218
|
+
} | (string | {
|
|
219
|
+
[x: string]: boolean;
|
|
220
|
+
} | (string | {
|
|
221
|
+
[x: string]: boolean;
|
|
222
|
+
} | (string | {
|
|
223
|
+
[x: string]: boolean;
|
|
224
|
+
} | (string | {
|
|
225
|
+
[x: string]: boolean;
|
|
226
|
+
} | (string | {
|
|
227
|
+
[x: string]: boolean;
|
|
228
|
+
} | (string | {
|
|
229
|
+
[x: string]: boolean;
|
|
230
|
+
} | (string | {
|
|
231
|
+
[x: string]: boolean;
|
|
232
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
233
|
+
default: string;
|
|
234
|
+
};
|
|
235
|
+
showAfter: {
|
|
236
|
+
type: NumberConstructor;
|
|
237
|
+
default: number;
|
|
238
|
+
};
|
|
239
|
+
hideAfter: {
|
|
240
|
+
type: NumberConstructor;
|
|
241
|
+
default: number;
|
|
242
|
+
};
|
|
243
|
+
autoClose: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
popperStyle: {
|
|
248
|
+
type: import('vue').PropType<import('vue').StyleValue>;
|
|
249
|
+
default: () => {};
|
|
250
|
+
};
|
|
251
|
+
appendTo: {
|
|
252
|
+
type: import('vue').PropType<string | HTMLElement>;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
effect: {
|
|
256
|
+
type: import('vue').PropType<import('./popover').PopoverEffect>;
|
|
257
|
+
default: string;
|
|
258
|
+
};
|
|
259
|
+
rawContent: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
default: boolean;
|
|
262
|
+
};
|
|
263
|
+
virtualTriggering: {
|
|
264
|
+
type: BooleanConstructor;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
virtualRef: {
|
|
268
|
+
type: import('vue').PropType<Ref<HTMLElement | null>>;
|
|
269
|
+
default: () => null;
|
|
270
|
+
};
|
|
271
|
+
zIndex: {
|
|
272
|
+
type: NumberConstructor;
|
|
273
|
+
};
|
|
274
|
+
enterable: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
278
|
+
teleported: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
}>> & Readonly<{
|
|
283
|
+
onBeforeEnter?: (() => any) | undefined;
|
|
284
|
+
onBeforeLeave?: (() => any) | undefined;
|
|
285
|
+
onHide?: (() => any) | undefined;
|
|
286
|
+
onShow?: (() => any) | undefined;
|
|
287
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
288
|
+
}>, {
|
|
289
|
+
width: string | number;
|
|
290
|
+
effect: import('./popover').PopoverEffect;
|
|
291
|
+
visible: boolean | null;
|
|
292
|
+
offset: number;
|
|
293
|
+
content: string;
|
|
294
|
+
disabled: boolean;
|
|
295
|
+
appendTo: string | HTMLElement;
|
|
296
|
+
trigger: import('./popover').PopoverTriggerType;
|
|
297
|
+
placement: import('element-plus').Placement;
|
|
298
|
+
strategy: "fixed" | "absolute";
|
|
299
|
+
showArrow: boolean;
|
|
300
|
+
popperOptions: Partial<import('element-plus').Options>;
|
|
301
|
+
fallbackPlacements: import('element-plus').Placement[];
|
|
302
|
+
gpuAcceleration: boolean;
|
|
303
|
+
popperClass: string | {
|
|
304
|
+
[x: string]: boolean;
|
|
305
|
+
} | (string | {
|
|
306
|
+
[x: string]: boolean;
|
|
307
|
+
} | (string | {
|
|
308
|
+
[x: string]: boolean;
|
|
309
|
+
} | (string | {
|
|
310
|
+
[x: string]: boolean;
|
|
311
|
+
} | (string | {
|
|
312
|
+
[x: string]: boolean;
|
|
313
|
+
} | (string | {
|
|
314
|
+
[x: string]: boolean;
|
|
315
|
+
} | (string | {
|
|
316
|
+
[x: string]: boolean;
|
|
317
|
+
} | (string | {
|
|
318
|
+
[x: string]: boolean;
|
|
319
|
+
} | (string | {
|
|
320
|
+
[x: string]: boolean;
|
|
321
|
+
} | (string | {
|
|
322
|
+
[x: string]: boolean;
|
|
323
|
+
} | (string | {
|
|
324
|
+
[x: string]: boolean;
|
|
325
|
+
} | (string | {
|
|
326
|
+
[x: string]: boolean;
|
|
327
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[];
|
|
328
|
+
showAfter: number;
|
|
329
|
+
hideAfter: number;
|
|
330
|
+
autoClose: boolean;
|
|
331
|
+
popperStyle: import('vue').StyleValue;
|
|
332
|
+
rawContent: boolean;
|
|
333
|
+
virtualTriggering: boolean;
|
|
334
|
+
virtualRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
335
|
+
enterable: boolean;
|
|
336
|
+
teleported: boolean;
|
|
337
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
338
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
339
|
+
export default _default;
|
|
340
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
341
|
+
new (): {
|
|
342
|
+
$slots: S;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
setTriggerRef: {
|
|
4
|
+
type: PropType<(el: HTMLElement | null) => void>;
|
|
5
|
+
default: () => void;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
setTriggerRef: {
|
|
11
|
+
type: PropType<(el: HTMLElement | null) => void>;
|
|
12
|
+
default: () => void;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
setTriggerRef: (el: HTMLElement | null) => void;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
virtualTriggering: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
virtualRef: {
|
|
16
|
+
type: import('vue').PropType<import('vue').Ref<HTMLElement | null>>;
|
|
17
|
+
default: () => null;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
trigger: {
|
|
24
|
+
type: import('vue').PropType<import('./popover').PopoverTriggerType>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
controlled: BooleanConstructor;
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
virtualTriggering: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
virtualRef: {
|
|
34
|
+
type: import('vue').PropType<import('vue').Ref<HTMLElement | null>>;
|
|
35
|
+
default: () => null;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
trigger: {
|
|
42
|
+
type: import('vue').PropType<import('./popover').PopoverTriggerType>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
controlled: BooleanConstructor;
|
|
46
|
+
}>> & Readonly<{}>, {
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
trigger: import('./popover').PopoverTriggerType;
|
|
49
|
+
virtualTriggering: boolean;
|
|
50
|
+
virtualRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
51
|
+
controlled: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { DialogProps } from '../../dialog';
|
|
3
|
+
/**
|
|
4
|
+
* PosterOptions 接口定义了 Poster 函数的参数结构。
|
|
5
|
+
*/
|
|
6
|
+
interface PosterOptions {
|
|
7
|
+
/**
|
|
8
|
+
* 动态加载的内容组件,返回一个 Promise,解析后包含默认导出的组件对象。
|
|
9
|
+
*/
|
|
10
|
+
component: () => Promise<{
|
|
11
|
+
default: Component;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* 传递给内容组件的属性。
|
|
15
|
+
*/
|
|
16
|
+
props?: Record<string, any>;
|
|
17
|
+
/**
|
|
18
|
+
* 传递给内容组件的事件处理函数。
|
|
19
|
+
*/
|
|
20
|
+
events?: Record<string, (...args: Array<any>) => void>;
|
|
21
|
+
/**
|
|
22
|
+
* 传递给弹窗组件的属性(不包含 modelValue)。
|
|
23
|
+
*/
|
|
24
|
+
dialogProps?: Partial<Omit<DialogProps, 'modelValue'>>;
|
|
25
|
+
/**
|
|
26
|
+
* 传递给弹窗组件的事件处理函数。
|
|
27
|
+
*/
|
|
28
|
+
dialogEvents?: Record<string, (...args: Array<any>) => void>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* PosterReturn 接口定义了 Poster 函数的返回值结构。
|
|
32
|
+
*/
|
|
33
|
+
interface PosterReturn {
|
|
34
|
+
/**
|
|
35
|
+
* 关闭弹窗的方法。
|
|
36
|
+
*/
|
|
37
|
+
close: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* 动态更新内容组件的属性。
|
|
40
|
+
* @param props 新的属性对象。
|
|
41
|
+
*/
|
|
42
|
+
setProps: (props: PosterOptions['props']) => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Poster 函数用于动态创建并渲染弹窗。
|
|
46
|
+
* @param options PosterOptions 类型的参数,定义了弹窗的内容组件、属性和事件。
|
|
47
|
+
* @returns PosterReturn 类型的对象,包含关闭弹窗和更新内容组件属性的方法。
|
|
48
|
+
*/
|
|
49
|
+
declare function Poster(options: PosterOptions): PosterReturn;
|
|
50
|
+
export default Poster;
|
|
51
|
+
export type { PosterOptions, PosterReturn, };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare const MtProgress: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<"circle" | "line" | "dashboard">;
|
|
5
|
+
default: "line";
|
|
6
|
+
values: readonly ["line", "circle", "dashboard"];
|
|
7
|
+
};
|
|
8
|
+
percentage: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
validator: (value: number) => boolean;
|
|
12
|
+
};
|
|
13
|
+
status: {
|
|
14
|
+
type: import('vue').PropType<"default" | "success" | "exception" | "warning">;
|
|
15
|
+
default: "default";
|
|
16
|
+
values: readonly ["default", "success", "exception", "warning"];
|
|
17
|
+
};
|
|
18
|
+
strokeWidth: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
showText: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
textInside: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
width: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
strokeLinecap: {
|
|
35
|
+
type: import('vue').PropType<import('vue').SVGAttributes["stroke-linecap"]>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
color: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
43
|
+
color: string;
|
|
44
|
+
type: "circle" | "line" | "dashboard";
|
|
45
|
+
width: number;
|
|
46
|
+
percentage: number;
|
|
47
|
+
status: "default" | "success" | "exception" | "warning";
|
|
48
|
+
strokeWidth: number;
|
|
49
|
+
showText: boolean;
|
|
50
|
+
textInside: boolean;
|
|
51
|
+
strokeLinecap: "inherit" | "round" | "square" | "butt" | undefined;
|
|
52
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
53
|
+
P: {};
|
|
54
|
+
B: {};
|
|
55
|
+
D: {};
|
|
56
|
+
C: {};
|
|
57
|
+
M: {};
|
|
58
|
+
Defaults: {};
|
|
59
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
type: {
|
|
61
|
+
type: import('vue').PropType<"circle" | "line" | "dashboard">;
|
|
62
|
+
default: "line";
|
|
63
|
+
values: readonly ["line", "circle", "dashboard"];
|
|
64
|
+
};
|
|
65
|
+
percentage: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: number;
|
|
68
|
+
validator: (value: number) => boolean;
|
|
69
|
+
};
|
|
70
|
+
status: {
|
|
71
|
+
type: import('vue').PropType<"default" | "success" | "exception" | "warning">;
|
|
72
|
+
default: "default";
|
|
73
|
+
values: readonly ["default", "success", "exception", "warning"];
|
|
74
|
+
};
|
|
75
|
+
strokeWidth: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
showText: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
textInside: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
width: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
strokeLinecap: {
|
|
92
|
+
type: import('vue').PropType<import('vue').SVGAttributes["stroke-linecap"]>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
color: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
100
|
+
color: string;
|
|
101
|
+
type: "circle" | "line" | "dashboard";
|
|
102
|
+
width: number;
|
|
103
|
+
percentage: number;
|
|
104
|
+
status: "default" | "success" | "exception" | "warning";
|
|
105
|
+
strokeWidth: number;
|
|
106
|
+
showText: boolean;
|
|
107
|
+
textInside: boolean;
|
|
108
|
+
strokeLinecap: "inherit" | "round" | "square" | "butt" | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
__isFragment?: never;
|
|
111
|
+
__isTeleport?: never;
|
|
112
|
+
__isSuspense?: never;
|
|
113
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
114
|
+
type: {
|
|
115
|
+
type: import('vue').PropType<"circle" | "line" | "dashboard">;
|
|
116
|
+
default: "line";
|
|
117
|
+
values: readonly ["line", "circle", "dashboard"];
|
|
118
|
+
};
|
|
119
|
+
percentage: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
validator: (value: number) => boolean;
|
|
123
|
+
};
|
|
124
|
+
status: {
|
|
125
|
+
type: import('vue').PropType<"default" | "success" | "exception" | "warning">;
|
|
126
|
+
default: "default";
|
|
127
|
+
values: readonly ["default", "success", "exception", "warning"];
|
|
128
|
+
};
|
|
129
|
+
strokeWidth: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
showText: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
textInside: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
width: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
default: number;
|
|
144
|
+
};
|
|
145
|
+
strokeLinecap: {
|
|
146
|
+
type: import('vue').PropType<import('vue').SVGAttributes["stroke-linecap"]>;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
color: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
154
|
+
color: string;
|
|
155
|
+
type: "circle" | "line" | "dashboard";
|
|
156
|
+
width: number;
|
|
157
|
+
percentage: number;
|
|
158
|
+
status: "default" | "success" | "exception" | "warning";
|
|
159
|
+
strokeWidth: number;
|
|
160
|
+
showText: boolean;
|
|
161
|
+
textInside: boolean;
|
|
162
|
+
strokeLinecap: "inherit" | "round" | "square" | "butt" | undefined;
|
|
163
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
164
|
+
$slots: Readonly<{
|
|
165
|
+
default: any;
|
|
166
|
+
}> & {
|
|
167
|
+
default: any;
|
|
168
|
+
};
|
|
169
|
+
}) & import('vue').Plugin;
|
|
170
|
+
export default MtProgress;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PropType, SVGAttributes } from 'vue';
|
|
2
|
+
declare const progressTypes: readonly ["line", "circle", "dashboard"];
|
|
3
|
+
declare const progressStatus: readonly ["default", "success", "exception", "warning"];
|
|
4
|
+
type ProgressTypes = typeof progressTypes[number];
|
|
5
|
+
type ProgressStatus = typeof progressStatus[number];
|
|
6
|
+
declare const progressProps: {
|
|
7
|
+
type: {
|
|
8
|
+
type: PropType<ProgressTypes>;
|
|
9
|
+
default: "line";
|
|
10
|
+
values: readonly ["line", "circle", "dashboard"];
|
|
11
|
+
};
|
|
12
|
+
percentage: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
validator: (value: number) => boolean;
|
|
16
|
+
};
|
|
17
|
+
status: {
|
|
18
|
+
type: PropType<ProgressStatus>;
|
|
19
|
+
default: "default";
|
|
20
|
+
values: readonly ["default", "success", "exception", "warning"];
|
|
21
|
+
};
|
|
22
|
+
strokeWidth: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
showText: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
textInside: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
width: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
strokeLinecap: {
|
|
39
|
+
type: PropType<SVGAttributes["stroke-linecap"]>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
color: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export { progressProps, };
|