@mingto/mt-ui 1.1.36 → 1.1.39
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 +173 -19
- package/dist/avatar-image/index.d.ts +3 -3
- package/dist/avatar-image/src/avatar-image.vue.d.ts +1 -1
- package/dist/avatar-text/index.d.ts +2 -2
- package/dist/avatar-text/src/avatar-text.vue.d.ts +3 -2
- package/dist/backtop/index.d.ts +2 -2
- package/dist/backtop/src/backtop.d.ts +1 -1
- package/dist/backtop/src/backtop.vue.d.ts +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/src/badge.vue.d.ts +1 -1
- package/dist/button/index.d.ts +44 -26
- package/dist/button/src/button.vue.d.ts +25 -13
- package/dist/cell/index.d.ts +15 -22
- package/dist/cell/src/cell.vue.d.ts +9 -16
- package/dist/cell-group/index.d.ts +8 -6
- package/dist/cell-group/src/cell-group.d.ts +6 -6
- package/dist/config-provider/index.d.ts +12 -3
- package/dist/config-provider/src/config-provider.d.ts +41 -6
- package/dist/dialog/index.d.ts +29 -29
- package/dist/dialog/src/dialog.d.ts +2 -2
- package/dist/dialog/src/dialog.vue.d.ts +15 -14
- package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +1 -37
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/src/empty.d.ts +1 -1
- package/dist/empty/src/empty.vue.d.ts +2 -2
- package/dist/fade-transition/index.d.ts +5 -5
- package/dist/fade-transition/src/fade-transition.vue.d.ts +2 -2
- package/dist/file-preview/src/ai-music-preview.vue.d.ts +17 -16
- package/dist/file-preview/src/iframe-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/image-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/music-preview.vue.d.ts +3 -2
- package/dist/hooks/dom/use-z-index.d.ts +4 -1
- package/dist/hooks/event/use-same-target.d.ts +4 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/locale/use-locale.d.ts +2 -2
- package/dist/hooks/use-namespace/index.d.ts +23 -0
- package/dist/hooks/vue/use-children.d.ts +6 -3
- package/dist/image/index.d.ts +25 -10
- package/dist/image/src/image.d.ts +7 -0
- package/dist/image/src/image.vue.d.ts +15 -5
- package/dist/index.es.js +67694 -64647
- package/dist/index.umd.js +68544 -106524
- package/dist/infinite-scroll/index.d.ts +27 -27
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +7 -4
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +18 -16
- package/dist/loading/src/loading.d.ts +3 -1
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/lang/ar.d.ts +8 -0
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/ms.d.ts +8 -0
- package/dist/locale/lang/th.d.ts +8 -0
- package/dist/locale/lang/vi.d.ts +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-tw.d.ts +8 -0
- package/dist/message/src/message.d.ts +1 -1
- package/dist/message/src/message.vue.d.ts +4 -4
- package/dist/popover/index.d.ts +28 -28
- package/dist/popover/src/content.vue.d.ts +6 -10
- package/dist/popover/src/popover.vue.d.ts +15 -15
- package/dist/poster/src/method.d.ts +3 -3
- package/dist/progress/index.d.ts +16 -13
- package/dist/progress/src/progress.d.ts +2 -2
- package/dist/progress/src/progress.vue.d.ts +10 -7
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/qrcode/src/qrcode.vue.d.ts +1 -1
- package/dist/style.css +544 -373
- package/dist/tab/src/tab.d.ts +2 -1
- package/dist/table/index.d.ts +2 -4
- package/dist/table/src/table.vue.d.ts +2 -4
- package/dist/table-column/index.d.ts +3 -6
- package/dist/table-column/src/table-column.vue.d.ts +3 -6
- package/dist/tabs/index.d.ts +8 -8
- package/dist/tabs/src/tabs.d.ts +1 -0
- package/dist/tabs/src/tabs.vue.d.ts +3 -3
- package/dist/tag/index.d.ts +17 -17
- package/dist/tag/src/tag.d.ts +6 -2
- package/dist/tag/src/tag.vue.d.ts +8 -8
- package/dist/tooltip/index.d.ts +60 -53
- package/dist/tooltip/src/tooltip.vue.d.ts +78 -77
- package/dist/upload/index.d.ts +320 -237
- package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +8 -2
- package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +1 -1
- package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +8 -2
- package/dist/upload/src/upload-content.d.ts +15 -4
- package/dist/upload/src/upload-content.vue.d.ts +41 -16
- package/dist/upload/src/upload.d.ts +16 -7
- package/dist/upload/src/upload.vue.d.ts +407 -213
- package/dist/utils/class/deferred.d.ts +8 -5
- package/dist/utils/prop/size.d.ts +1 -1
- package/dist/utils/vue/children.d.ts +1 -3
- package/dist/utils/vue/install.d.ts +2 -2
- package/package.json +6 -4
- /package/dist/upload/src/{use-full-scree-drag.d.ts → use-full-screen-drag.d.ts} +0 -0
package/dist/upload/index.d.ts
CHANGED
|
@@ -14,12 +14,17 @@ export declare const MtUpload: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly suffixes: {
|
|
16
16
|
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
17
|
-
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
17
|
+
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar" | "md")[];
|
|
18
18
|
};
|
|
19
19
|
readonly disabled: {
|
|
20
20
|
readonly type: BooleanConstructor;
|
|
21
21
|
readonly default: false;
|
|
22
22
|
};
|
|
23
|
+
readonly sceneId: {
|
|
24
|
+
readonly type: import('vue').PropType<import('.').SceneIdEnum>;
|
|
25
|
+
readonly default: import(".").SceneIdEnum.PUBLIC;
|
|
26
|
+
readonly values: import('.').SceneIdEnum[];
|
|
27
|
+
};
|
|
23
28
|
readonly listType: {
|
|
24
29
|
readonly type: import('vue').PropType<import('.').ListTypeEnum>;
|
|
25
30
|
readonly default: import(".").ListTypeEnum.FILE_LIST;
|
|
@@ -33,7 +38,7 @@ export declare const MtUpload: {
|
|
|
33
38
|
readonly type: BooleanConstructor;
|
|
34
39
|
readonly default: false;
|
|
35
40
|
};
|
|
36
|
-
readonly
|
|
41
|
+
readonly isFullScreenDrag: {
|
|
37
42
|
readonly type: BooleanConstructor;
|
|
38
43
|
readonly default: false;
|
|
39
44
|
};
|
|
@@ -55,25 +60,25 @@ export declare const MtUpload: {
|
|
|
55
60
|
readonly default: () => {};
|
|
56
61
|
};
|
|
57
62
|
readonly beforeUpload: {
|
|
58
|
-
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
59
|
-
readonly default: () => Promise<
|
|
63
|
+
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean>>;
|
|
64
|
+
readonly default: () => Promise<boolean>;
|
|
60
65
|
};
|
|
61
66
|
}>> & Readonly<{
|
|
67
|
+
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
62
68
|
onError?: ((args_0: {
|
|
63
69
|
error: Error;
|
|
64
70
|
uploadFile: import('.').UploadFile;
|
|
65
71
|
uploadFiles: import('.').UploadFile[];
|
|
66
72
|
}) => any) | undefined;
|
|
67
|
-
|
|
73
|
+
onSuccess?: ((args_0: {
|
|
74
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
68
75
|
uploadFile: import('.').UploadFile;
|
|
69
76
|
uploadFiles: import('.').UploadFile[];
|
|
70
77
|
}) => any) | undefined;
|
|
71
|
-
|
|
72
|
-
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
78
|
+
onChange?: ((args_0: {
|
|
73
79
|
uploadFile: import('.').UploadFile;
|
|
74
80
|
uploadFiles: import('.').UploadFile[];
|
|
75
81
|
}) => any) | undefined;
|
|
76
|
-
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
77
82
|
}>, {
|
|
78
83
|
abort(uploadFile: import('.').UploadFile): void;
|
|
79
84
|
remove(uploadFile: import('.').UploadFile): void;
|
|
@@ -83,36 +88,37 @@ export declare const MtUpload: {
|
|
|
83
88
|
}[] | import('.').UploadFile[]): import('.').UploadFile[];
|
|
84
89
|
validate(isRequired?: boolean): boolean;
|
|
85
90
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
91
|
+
"update:modelValue": (args_0: import('.').UploadFile[]) => any;
|
|
86
92
|
error: (args_0: {
|
|
87
93
|
error: Error;
|
|
88
94
|
uploadFile: import('.').UploadFile;
|
|
89
95
|
uploadFiles: import('.').UploadFile[];
|
|
90
96
|
}) => any;
|
|
91
|
-
|
|
97
|
+
success: (args_0: {
|
|
98
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
92
99
|
uploadFile: import('.').UploadFile;
|
|
93
100
|
uploadFiles: import('.').UploadFile[];
|
|
94
101
|
}) => any;
|
|
95
|
-
|
|
96
|
-
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
102
|
+
change: (args_0: {
|
|
97
103
|
uploadFile: import('.').UploadFile;
|
|
98
104
|
uploadFiles: import('.').UploadFile[];
|
|
99
105
|
}) => any;
|
|
100
|
-
"update:modelValue": (args_0: import('.').UploadFile[]) => any;
|
|
101
106
|
}, import('vue').PublicProps, {
|
|
102
107
|
readonly size: number;
|
|
103
|
-
readonly disabled: boolean;
|
|
104
108
|
readonly modelValue: import('.').UploadFile[];
|
|
109
|
+
readonly disabled: boolean;
|
|
105
110
|
readonly limit: number;
|
|
106
111
|
readonly multiple: boolean;
|
|
107
112
|
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
113
|
+
readonly sceneId: import('.').SceneIdEnum;
|
|
108
114
|
readonly listType: import('.').ListTypeEnum;
|
|
109
115
|
readonly showTrigger: boolean;
|
|
110
116
|
readonly showList: boolean;
|
|
111
|
-
readonly
|
|
117
|
+
readonly isFullScreenDrag: boolean;
|
|
112
118
|
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
113
119
|
readonly autoCropper: boolean;
|
|
114
120
|
readonly copperOptions: import('.').CopperOptions;
|
|
115
|
-
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
121
|
+
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
116
122
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
117
123
|
uploadImageOnlyTriggerRef: ({
|
|
118
124
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -134,7 +140,10 @@ export declare const MtUpload: {
|
|
|
134
140
|
readonly limit?: number | undefined;
|
|
135
141
|
readonly suffixes?: string[] | undefined;
|
|
136
142
|
readonly copperOptions?: import('.').CopperOptions | undefined;
|
|
137
|
-
readonly onRemove?: ((
|
|
143
|
+
readonly onRemove?: ((args_0: {
|
|
144
|
+
fileItem: import('.').UploadFile;
|
|
145
|
+
fileIndex: number;
|
|
146
|
+
}) => any) | undefined;
|
|
138
147
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
|
|
139
148
|
$attrs: import('vue').Attrs;
|
|
140
149
|
$refs: {
|
|
@@ -168,7 +177,10 @@ export declare const MtUpload: {
|
|
|
168
177
|
$root: import('vue').ComponentPublicInstance | null;
|
|
169
178
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
170
179
|
$host: Element | null;
|
|
171
|
-
$emit: (event: "remove",
|
|
180
|
+
$emit: (event: "remove", args_0: {
|
|
181
|
+
fileItem: import('.').UploadFile;
|
|
182
|
+
fileIndex: number;
|
|
183
|
+
}) => void;
|
|
172
184
|
$el: HTMLDivElement;
|
|
173
185
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
174
186
|
fileList: {
|
|
@@ -201,11 +213,17 @@ export declare const MtUpload: {
|
|
|
201
213
|
type: import('vue').PropType<import('.').CopperOptions>;
|
|
202
214
|
};
|
|
203
215
|
}>> & Readonly<{
|
|
204
|
-
onRemove?: ((
|
|
216
|
+
onRemove?: ((args_0: {
|
|
217
|
+
fileItem: import('.').UploadFile;
|
|
218
|
+
fileIndex: number;
|
|
219
|
+
}) => any) | undefined;
|
|
205
220
|
}>, {
|
|
206
221
|
choose(): void;
|
|
207
222
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
208
|
-
remove: (
|
|
223
|
+
remove: (args_0: {
|
|
224
|
+
fileItem: import('.').UploadFile;
|
|
225
|
+
fileIndex: number;
|
|
226
|
+
}) => any;
|
|
209
227
|
}, string, {
|
|
210
228
|
disabled: boolean;
|
|
211
229
|
multiple: boolean;
|
|
@@ -271,91 +289,171 @@ export declare const MtUpload: {
|
|
|
271
289
|
type: import('vue').PropType<import('.').CopperOptions>;
|
|
272
290
|
};
|
|
273
291
|
}>> & Readonly<{
|
|
274
|
-
onRemove?: ((
|
|
292
|
+
onRemove?: ((args_0: {
|
|
293
|
+
fileItem: import('.').UploadFile;
|
|
294
|
+
fileIndex: number;
|
|
295
|
+
}) => any) | undefined;
|
|
275
296
|
}>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
|
|
276
297
|
choose: () => void;
|
|
277
298
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
278
299
|
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
279
300
|
}) | null;
|
|
280
|
-
uploadRef:
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
onProgress
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
default: typeof import('../utils').NOOP;
|
|
319
|
-
};
|
|
320
|
-
onSuccess: {
|
|
321
|
-
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void>;
|
|
322
|
-
default: typeof import('../utils').NOOP;
|
|
323
|
-
};
|
|
324
|
-
onRemove: {
|
|
325
|
-
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => void>;
|
|
326
|
-
default: typeof import('../utils').NOOP;
|
|
301
|
+
uploadRef: ({
|
|
302
|
+
$: import('vue').ComponentInternalInstance;
|
|
303
|
+
$data: {};
|
|
304
|
+
$props: Partial<{
|
|
305
|
+
onError: (error: Error, rawFile: import('.').UploadRawFile) => void;
|
|
306
|
+
onProgress: (event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void;
|
|
307
|
+
disabled: boolean;
|
|
308
|
+
multiple: boolean;
|
|
309
|
+
sceneId: import('.').SceneIdEnum;
|
|
310
|
+
beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
311
|
+
fileList: import('.').UploadFile[];
|
|
312
|
+
onRemove: (rawFile: import('.').UploadRawFile) => void;
|
|
313
|
+
onExceed: (files: File[]) => void;
|
|
314
|
+
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
315
|
+
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
316
|
+
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
317
|
+
}> & Omit<{
|
|
318
|
+
readonly onError: (error: Error, rawFile: import('.').UploadRawFile) => void;
|
|
319
|
+
readonly onProgress: (event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void;
|
|
320
|
+
readonly disabled: boolean;
|
|
321
|
+
readonly multiple: boolean;
|
|
322
|
+
readonly sceneId: import('.').SceneIdEnum;
|
|
323
|
+
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
324
|
+
readonly fileList: import('.').UploadFile[];
|
|
325
|
+
readonly onRemove: (rawFile: import('.').UploadRawFile) => void;
|
|
326
|
+
readonly onExceed: (files: File[]) => void;
|
|
327
|
+
readonly onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
328
|
+
readonly onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
329
|
+
readonly onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
330
|
+
readonly size?: number | undefined;
|
|
331
|
+
readonly limit?: number | undefined;
|
|
332
|
+
readonly suffixes?: import('@mingto/tools').FileSuffix[] | undefined;
|
|
333
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess">;
|
|
334
|
+
$attrs: import('vue').Attrs;
|
|
335
|
+
$refs: {
|
|
336
|
+
[x: string]: unknown;
|
|
337
|
+
} & {
|
|
338
|
+
inputRef: HTMLInputElement;
|
|
327
339
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
340
|
+
$slots: Readonly<{
|
|
341
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
342
|
+
}>;
|
|
343
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
344
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
345
|
+
$host: Element | null;
|
|
346
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
347
|
+
$el: HTMLDivElement;
|
|
348
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
349
|
+
fileList: {
|
|
350
|
+
type: import('vue').PropType<import('.').UploadFile[]>;
|
|
351
|
+
default: () => never[];
|
|
352
|
+
};
|
|
353
|
+
limit: {
|
|
354
|
+
type: NumberConstructor;
|
|
355
|
+
};
|
|
356
|
+
multiple: {
|
|
357
|
+
type: BooleanConstructor;
|
|
358
|
+
};
|
|
359
|
+
size: {
|
|
360
|
+
type: NumberConstructor;
|
|
361
|
+
};
|
|
362
|
+
suffixes: {
|
|
363
|
+
type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
364
|
+
};
|
|
365
|
+
disabled: {
|
|
366
|
+
type: BooleanConstructor;
|
|
367
|
+
};
|
|
368
|
+
sceneId: {
|
|
369
|
+
type: import('vue').PropType<import('.').SceneIdEnum>;
|
|
370
|
+
default: import('.').SceneIdEnum;
|
|
371
|
+
values: import('.').SceneIdEnum[];
|
|
372
|
+
};
|
|
373
|
+
onExceed: {
|
|
374
|
+
type: import('vue').PropType<(files: File[]) => void>;
|
|
375
|
+
default: typeof import('../utils').NOOP;
|
|
376
|
+
};
|
|
377
|
+
onStart: {
|
|
378
|
+
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => void>;
|
|
379
|
+
default: () => void;
|
|
380
|
+
};
|
|
381
|
+
onReload: {
|
|
382
|
+
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => void>;
|
|
383
|
+
default: typeof import('../utils').NOOP;
|
|
384
|
+
};
|
|
385
|
+
onProgress: {
|
|
386
|
+
type: import('vue').PropType<(event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void>;
|
|
387
|
+
default: typeof import('../utils').NOOP;
|
|
388
|
+
};
|
|
389
|
+
onError: {
|
|
390
|
+
type: import('vue').PropType<(error: Error, rawFile: import('.').UploadRawFile) => void>;
|
|
391
|
+
default: typeof import('../utils').NOOP;
|
|
392
|
+
};
|
|
393
|
+
onSuccess: {
|
|
394
|
+
type: import('vue').PropType<(response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void>;
|
|
395
|
+
default: typeof import('../utils').NOOP;
|
|
396
|
+
};
|
|
397
|
+
onRemove: {
|
|
398
|
+
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => void>;
|
|
399
|
+
default: typeof import('../utils').NOOP;
|
|
400
|
+
};
|
|
401
|
+
beforeUpload: {
|
|
402
|
+
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean>>;
|
|
403
|
+
default: () => Promise<boolean>;
|
|
404
|
+
};
|
|
405
|
+
}>> & Readonly<{}>, {
|
|
406
|
+
abort: (uploadFile: import('.').UploadFile) => void;
|
|
407
|
+
upload: (files: File[]) => Promise<void>;
|
|
408
|
+
reload: (uid: number, file: File) => Promise<void>;
|
|
409
|
+
choose: () => Promise<void>;
|
|
410
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
411
|
+
onError: (error: Error, rawFile: import('.').UploadRawFile) => void;
|
|
412
|
+
onProgress: (event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void;
|
|
413
|
+
disabled: boolean;
|
|
414
|
+
multiple: boolean;
|
|
415
|
+
sceneId: import('.').SceneIdEnum;
|
|
416
|
+
beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
417
|
+
fileList: import('.').UploadFile[];
|
|
418
|
+
onRemove: (rawFile: import('.').UploadRawFile) => void;
|
|
419
|
+
onExceed: (files: File[]) => void;
|
|
420
|
+
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
421
|
+
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
422
|
+
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
423
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
424
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
425
|
+
created?: (() => void) | (() => void)[];
|
|
426
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
427
|
+
mounted?: (() => void) | (() => void)[];
|
|
428
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
429
|
+
updated?: (() => void) | (() => void)[];
|
|
430
|
+
activated?: (() => void) | (() => void)[];
|
|
431
|
+
deactivated?: (() => void) | (() => void)[];
|
|
432
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
433
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
434
|
+
destroyed?: (() => void) | (() => void)[];
|
|
435
|
+
unmounted?: (() => void) | (() => void)[];
|
|
436
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
437
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
438
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
331
439
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
upload: (files: Array<File>) => void;
|
|
337
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
440
|
+
$forceUpdate: () => void;
|
|
441
|
+
$nextTick: typeof import('vue').nextTick;
|
|
442
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
443
|
+
} & Readonly<{
|
|
338
444
|
onError: (error: Error, rawFile: import('.').UploadRawFile) => void;
|
|
339
|
-
onProgress: (
|
|
445
|
+
onProgress: (event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void;
|
|
340
446
|
disabled: boolean;
|
|
341
447
|
multiple: boolean;
|
|
342
|
-
|
|
448
|
+
sceneId: import('.').SceneIdEnum;
|
|
449
|
+
beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
343
450
|
fileList: import('.').UploadFile[];
|
|
344
451
|
onRemove: (rawFile: import('.').UploadRawFile) => void;
|
|
345
452
|
onExceed: (files: File[]) => void;
|
|
346
453
|
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
347
454
|
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
348
455
|
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
349
|
-
}
|
|
350
|
-
inputRef: HTMLInputElement;
|
|
351
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
352
|
-
P: {};
|
|
353
|
-
B: {};
|
|
354
|
-
D: {};
|
|
355
|
-
C: {};
|
|
356
|
-
M: {};
|
|
357
|
-
Defaults: {};
|
|
358
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
456
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
359
457
|
fileList: {
|
|
360
458
|
type: import('vue').PropType<import('.').UploadFile[]>;
|
|
361
459
|
default: () => never[];
|
|
@@ -375,6 +473,11 @@ export declare const MtUpload: {
|
|
|
375
473
|
disabled: {
|
|
376
474
|
type: BooleanConstructor;
|
|
377
475
|
};
|
|
476
|
+
sceneId: {
|
|
477
|
+
type: import('vue').PropType<import('.').SceneIdEnum>;
|
|
478
|
+
default: import('.').SceneIdEnum;
|
|
479
|
+
values: import('.').SceneIdEnum[];
|
|
480
|
+
};
|
|
378
481
|
onExceed: {
|
|
379
482
|
type: import('vue').PropType<(files: File[]) => void>;
|
|
380
483
|
default: typeof import('../utils').NOOP;
|
|
@@ -388,7 +491,7 @@ export declare const MtUpload: {
|
|
|
388
491
|
default: typeof import('../utils').NOOP;
|
|
389
492
|
};
|
|
390
493
|
onProgress: {
|
|
391
|
-
type: import('vue').PropType<(
|
|
494
|
+
type: import('vue').PropType<(event: import('.').UploadProgressEvent, rawFile: import('.').UploadRawFile) => void>;
|
|
392
495
|
default: typeof import('../utils').NOOP;
|
|
393
496
|
};
|
|
394
497
|
onError: {
|
|
@@ -404,27 +507,19 @@ export declare const MtUpload: {
|
|
|
404
507
|
default: typeof import('../utils').NOOP;
|
|
405
508
|
};
|
|
406
509
|
beforeUpload: {
|
|
407
|
-
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
408
|
-
default:
|
|
510
|
+
type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean>>;
|
|
511
|
+
default: () => Promise<boolean>;
|
|
409
512
|
};
|
|
410
|
-
}>> & Readonly<{}>, {
|
|
411
|
-
abort: (uploadFile
|
|
412
|
-
|
|
413
|
-
reload: (uid: number, file: File) => void
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean> | boolean;
|
|
421
|
-
fileList: import('.').UploadFile[];
|
|
422
|
-
onRemove: (rawFile: import('.').UploadRawFile) => void;
|
|
423
|
-
onExceed: (files: File[]) => void;
|
|
424
|
-
onStart: (rawFile: import('.').UploadRawFile) => void;
|
|
425
|
-
onReload: (rawFile: import('.').UploadRawFile) => void;
|
|
426
|
-
onSuccess: (response: import('@mingto/obs-server').IUploadFileSuccessResponse, rawFile: import('.').UploadRawFile) => void;
|
|
427
|
-
}> | null;
|
|
513
|
+
}>> & Readonly<{}>, "abort" | "choose" | "reload" | ("onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess") | "upload"> & {
|
|
514
|
+
abort: (uploadFile: import('.').UploadFile) => void;
|
|
515
|
+
upload: (files: File[]) => Promise<void>;
|
|
516
|
+
reload: (uid: number, file: File) => Promise<void>;
|
|
517
|
+
choose: () => Promise<void>;
|
|
518
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
519
|
+
$slots: {
|
|
520
|
+
default?(_: {}): any;
|
|
521
|
+
};
|
|
522
|
+
}) | null;
|
|
428
523
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
429
524
|
P: {};
|
|
430
525
|
B: {};
|
|
@@ -447,12 +542,17 @@ export declare const MtUpload: {
|
|
|
447
542
|
};
|
|
448
543
|
readonly suffixes: {
|
|
449
544
|
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
450
|
-
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
545
|
+
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar" | "md")[];
|
|
451
546
|
};
|
|
452
547
|
readonly disabled: {
|
|
453
548
|
readonly type: BooleanConstructor;
|
|
454
549
|
readonly default: false;
|
|
455
550
|
};
|
|
551
|
+
readonly sceneId: {
|
|
552
|
+
readonly type: import('vue').PropType<import('.').SceneIdEnum>;
|
|
553
|
+
readonly default: import(".").SceneIdEnum.PUBLIC;
|
|
554
|
+
readonly values: import('.').SceneIdEnum[];
|
|
555
|
+
};
|
|
456
556
|
readonly listType: {
|
|
457
557
|
readonly type: import('vue').PropType<import('.').ListTypeEnum>;
|
|
458
558
|
readonly default: import(".").ListTypeEnum.FILE_LIST;
|
|
@@ -466,7 +566,7 @@ export declare const MtUpload: {
|
|
|
466
566
|
readonly type: BooleanConstructor;
|
|
467
567
|
readonly default: false;
|
|
468
568
|
};
|
|
469
|
-
readonly
|
|
569
|
+
readonly isFullScreenDrag: {
|
|
470
570
|
readonly type: BooleanConstructor;
|
|
471
571
|
readonly default: false;
|
|
472
572
|
};
|
|
@@ -488,25 +588,25 @@ export declare const MtUpload: {
|
|
|
488
588
|
readonly default: () => {};
|
|
489
589
|
};
|
|
490
590
|
readonly beforeUpload: {
|
|
491
|
-
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
492
|
-
readonly default: () => Promise<
|
|
591
|
+
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean>>;
|
|
592
|
+
readonly default: () => Promise<boolean>;
|
|
493
593
|
};
|
|
494
594
|
}>> & Readonly<{
|
|
595
|
+
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
495
596
|
onError?: ((args_0: {
|
|
496
597
|
error: Error;
|
|
497
598
|
uploadFile: import('.').UploadFile;
|
|
498
599
|
uploadFiles: import('.').UploadFile[];
|
|
499
600
|
}) => any) | undefined;
|
|
500
|
-
|
|
601
|
+
onSuccess?: ((args_0: {
|
|
602
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
501
603
|
uploadFile: import('.').UploadFile;
|
|
502
604
|
uploadFiles: import('.').UploadFile[];
|
|
503
605
|
}) => any) | undefined;
|
|
504
|
-
|
|
505
|
-
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
606
|
+
onChange?: ((args_0: {
|
|
506
607
|
uploadFile: import('.').UploadFile;
|
|
507
608
|
uploadFiles: import('.').UploadFile[];
|
|
508
609
|
}) => any) | undefined;
|
|
509
|
-
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
510
610
|
}>, {
|
|
511
611
|
abort(uploadFile: import('.').UploadFile): void;
|
|
512
612
|
remove(uploadFile: import('.').UploadFile): void;
|
|
@@ -517,19 +617,20 @@ export declare const MtUpload: {
|
|
|
517
617
|
validate(isRequired?: boolean): boolean;
|
|
518
618
|
}, {}, {}, {}, {
|
|
519
619
|
readonly size: number;
|
|
520
|
-
readonly disabled: boolean;
|
|
521
620
|
readonly modelValue: import('.').UploadFile[];
|
|
621
|
+
readonly disabled: boolean;
|
|
522
622
|
readonly limit: number;
|
|
523
623
|
readonly multiple: boolean;
|
|
524
624
|
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
625
|
+
readonly sceneId: import('.').SceneIdEnum;
|
|
525
626
|
readonly listType: import('.').ListTypeEnum;
|
|
526
627
|
readonly showTrigger: boolean;
|
|
527
628
|
readonly showList: boolean;
|
|
528
|
-
readonly
|
|
629
|
+
readonly isFullScreenDrag: boolean;
|
|
529
630
|
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
530
631
|
readonly autoCropper: boolean;
|
|
531
632
|
readonly copperOptions: import('.').CopperOptions;
|
|
532
|
-
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
633
|
+
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
533
634
|
}>;
|
|
534
635
|
__isFragment?: never;
|
|
535
636
|
__isTeleport?: never;
|
|
@@ -549,12 +650,17 @@ export declare const MtUpload: {
|
|
|
549
650
|
};
|
|
550
651
|
readonly suffixes: {
|
|
551
652
|
readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
|
|
552
|
-
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar")[];
|
|
653
|
+
readonly default: ("html" | "ppt" | "docx" | "doc" | "pdf" | "pptx" | "xlsx" | "xls" | "jpg" | "png" | "jpeg" | "webp" | "gif" | "mp4" | "avi" | "flv" | "mkv" | "mp3" | "wav" | "txt" | "json" | "zip" | "rar" | "md")[];
|
|
553
654
|
};
|
|
554
655
|
readonly disabled: {
|
|
555
656
|
readonly type: BooleanConstructor;
|
|
556
657
|
readonly default: false;
|
|
557
658
|
};
|
|
659
|
+
readonly sceneId: {
|
|
660
|
+
readonly type: import('vue').PropType<import('.').SceneIdEnum>;
|
|
661
|
+
readonly default: import(".").SceneIdEnum.PUBLIC;
|
|
662
|
+
readonly values: import('.').SceneIdEnum[];
|
|
663
|
+
};
|
|
558
664
|
readonly listType: {
|
|
559
665
|
readonly type: import('vue').PropType<import('.').ListTypeEnum>;
|
|
560
666
|
readonly default: import(".").ListTypeEnum.FILE_LIST;
|
|
@@ -568,7 +674,7 @@ export declare const MtUpload: {
|
|
|
568
674
|
readonly type: BooleanConstructor;
|
|
569
675
|
readonly default: false;
|
|
570
676
|
};
|
|
571
|
-
readonly
|
|
677
|
+
readonly isFullScreenDrag: {
|
|
572
678
|
readonly type: BooleanConstructor;
|
|
573
679
|
readonly default: false;
|
|
574
680
|
};
|
|
@@ -590,25 +696,25 @@ export declare const MtUpload: {
|
|
|
590
696
|
readonly default: () => {};
|
|
591
697
|
};
|
|
592
698
|
readonly beforeUpload: {
|
|
593
|
-
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
594
|
-
readonly default: () => Promise<
|
|
699
|
+
readonly type: import('vue').PropType<(rawFile: import('.').UploadRawFile) => Promise<boolean>>;
|
|
700
|
+
readonly default: () => Promise<boolean>;
|
|
595
701
|
};
|
|
596
702
|
}>> & Readonly<{
|
|
703
|
+
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
597
704
|
onError?: ((args_0: {
|
|
598
705
|
error: Error;
|
|
599
706
|
uploadFile: import('.').UploadFile;
|
|
600
707
|
uploadFiles: import('.').UploadFile[];
|
|
601
708
|
}) => any) | undefined;
|
|
602
|
-
|
|
709
|
+
onSuccess?: ((args_0: {
|
|
710
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
603
711
|
uploadFile: import('.').UploadFile;
|
|
604
712
|
uploadFiles: import('.').UploadFile[];
|
|
605
713
|
}) => any) | undefined;
|
|
606
|
-
|
|
607
|
-
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
714
|
+
onChange?: ((args_0: {
|
|
608
715
|
uploadFile: import('.').UploadFile;
|
|
609
716
|
uploadFiles: import('.').UploadFile[];
|
|
610
717
|
}) => any) | undefined;
|
|
611
|
-
"onUpdate:modelValue"?: ((args_0: import('.').UploadFile[]) => any) | undefined;
|
|
612
718
|
}>, {
|
|
613
719
|
abort(uploadFile: import('.').UploadFile): void;
|
|
614
720
|
remove(uploadFile: import('.').UploadFile): void;
|
|
@@ -618,43 +724,44 @@ export declare const MtUpload: {
|
|
|
618
724
|
}[] | import('.').UploadFile[]): import('.').UploadFile[];
|
|
619
725
|
validate(isRequired?: boolean): boolean;
|
|
620
726
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
727
|
+
"update:modelValue": (args_0: import('.').UploadFile[]) => any;
|
|
621
728
|
error: (args_0: {
|
|
622
729
|
error: Error;
|
|
623
730
|
uploadFile: import('.').UploadFile;
|
|
624
731
|
uploadFiles: import('.').UploadFile[];
|
|
625
732
|
}) => any;
|
|
626
|
-
|
|
733
|
+
success: (args_0: {
|
|
734
|
+
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
627
735
|
uploadFile: import('.').UploadFile;
|
|
628
736
|
uploadFiles: import('.').UploadFile[];
|
|
629
737
|
}) => any;
|
|
630
|
-
|
|
631
|
-
response: import('@mingto/obs-server').IUploadFileSuccessResponse;
|
|
738
|
+
change: (args_0: {
|
|
632
739
|
uploadFile: import('.').UploadFile;
|
|
633
740
|
uploadFiles: import('.').UploadFile[];
|
|
634
741
|
}) => any;
|
|
635
|
-
"update:modelValue": (args_0: import('.').UploadFile[]) => any;
|
|
636
742
|
}, string, {
|
|
637
743
|
readonly size: number;
|
|
638
|
-
readonly disabled: boolean;
|
|
639
744
|
readonly modelValue: import('.').UploadFile[];
|
|
745
|
+
readonly disabled: boolean;
|
|
640
746
|
readonly limit: number;
|
|
641
747
|
readonly multiple: boolean;
|
|
642
748
|
readonly suffixes: import('@mingto/tools').FileSuffix[];
|
|
749
|
+
readonly sceneId: import('.').SceneIdEnum;
|
|
643
750
|
readonly listType: import('.').ListTypeEnum;
|
|
644
751
|
readonly showTrigger: boolean;
|
|
645
752
|
readonly showList: boolean;
|
|
646
|
-
readonly
|
|
753
|
+
readonly isFullScreenDrag: boolean;
|
|
647
754
|
readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
|
|
648
755
|
readonly autoCropper: boolean;
|
|
649
756
|
readonly copperOptions: import('.').CopperOptions;
|
|
650
|
-
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean
|
|
757
|
+
readonly beforeUpload: (rawFile: import('.').UploadRawFile) => Promise<boolean>;
|
|
651
758
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
652
759
|
$slots: Readonly<{
|
|
653
|
-
trigger?:
|
|
654
|
-
tip?:
|
|
760
|
+
trigger?: () => import('vue').VNode[];
|
|
761
|
+
tip?: () => import('vue').VNode[];
|
|
655
762
|
}> & {
|
|
656
|
-
trigger?:
|
|
657
|
-
tip?:
|
|
763
|
+
trigger?: () => import('vue').VNode[];
|
|
764
|
+
tip?: () => import('vue').VNode[];
|
|
658
765
|
};
|
|
659
766
|
}) & import('vue').Plugin;
|
|
660
767
|
export declare const MtUploadFileListLayout: {
|
|
@@ -668,9 +775,15 @@ export declare const MtUploadFileListLayout: {
|
|
|
668
775
|
default: boolean;
|
|
669
776
|
};
|
|
670
777
|
}>> & Readonly<{
|
|
671
|
-
onRemove?: ((
|
|
778
|
+
onRemove?: ((args_0: {
|
|
779
|
+
fileItem: import('.').UploadFile;
|
|
780
|
+
fileIndex: number;
|
|
781
|
+
}) => any) | undefined;
|
|
672
782
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
673
|
-
remove: (
|
|
783
|
+
remove: (args_0: {
|
|
784
|
+
fileItem: import('.').UploadFile;
|
|
785
|
+
fileIndex: number;
|
|
786
|
+
}) => any;
|
|
674
787
|
}, import('vue').PublicProps, {
|
|
675
788
|
disabled: boolean;
|
|
676
789
|
fileList: import('.').UploadFile[];
|
|
@@ -691,7 +804,10 @@ export declare const MtUploadFileListLayout: {
|
|
|
691
804
|
default: boolean;
|
|
692
805
|
};
|
|
693
806
|
}>> & Readonly<{
|
|
694
|
-
onRemove?: ((
|
|
807
|
+
onRemove?: ((args_0: {
|
|
808
|
+
fileItem: import('.').UploadFile;
|
|
809
|
+
fileIndex: number;
|
|
810
|
+
}) => any) | undefined;
|
|
695
811
|
}>, {}, {}, {}, {}, {
|
|
696
812
|
disabled: boolean;
|
|
697
813
|
fileList: import('.').UploadFile[];
|
|
@@ -709,9 +825,15 @@ export declare const MtUploadFileListLayout: {
|
|
|
709
825
|
default: boolean;
|
|
710
826
|
};
|
|
711
827
|
}>> & Readonly<{
|
|
712
|
-
onRemove?: ((
|
|
828
|
+
onRemove?: ((args_0: {
|
|
829
|
+
fileItem: import('.').UploadFile;
|
|
830
|
+
fileIndex: number;
|
|
831
|
+
}) => any) | undefined;
|
|
713
832
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
714
|
-
remove: (
|
|
833
|
+
remove: (args_0: {
|
|
834
|
+
fileItem: import('.').UploadFile;
|
|
835
|
+
fileIndex: number;
|
|
836
|
+
}) => any;
|
|
715
837
|
}, string, {
|
|
716
838
|
disabled: boolean;
|
|
717
839
|
fileList: import('.').UploadFile[];
|
|
@@ -731,9 +853,15 @@ export declare const MtUploadImageGridLayout: {
|
|
|
731
853
|
default: () => {};
|
|
732
854
|
};
|
|
733
855
|
}>> & Readonly<{
|
|
734
|
-
onRemove?: ((
|
|
856
|
+
onRemove?: ((args_0: {
|
|
857
|
+
fileItem: import('.').UploadFile;
|
|
858
|
+
fileIndex: number;
|
|
859
|
+
}) => any) | undefined;
|
|
735
860
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
736
|
-
remove: (
|
|
861
|
+
remove: (args_0: {
|
|
862
|
+
fileItem: import('.').UploadFile;
|
|
863
|
+
fileIndex: number;
|
|
864
|
+
}) => any;
|
|
737
865
|
}, import('vue').PublicProps, {
|
|
738
866
|
disabled: boolean;
|
|
739
867
|
copperOptions: import('.').CopperOptions;
|
|
@@ -780,7 +908,10 @@ export declare const MtUploadImageGridLayout: {
|
|
|
780
908
|
default: () => {};
|
|
781
909
|
};
|
|
782
910
|
}>> & Readonly<{
|
|
783
|
-
onRemove?: ((
|
|
911
|
+
onRemove?: ((args_0: {
|
|
912
|
+
fileItem: import('.').UploadFile;
|
|
913
|
+
fileIndex: number;
|
|
914
|
+
}) => any) | undefined;
|
|
784
915
|
}>, {}, {}, {}, {}, {
|
|
785
916
|
disabled: boolean;
|
|
786
917
|
copperOptions: import('.').CopperOptions;
|
|
@@ -803,9 +934,15 @@ export declare const MtUploadImageGridLayout: {
|
|
|
803
934
|
default: () => {};
|
|
804
935
|
};
|
|
805
936
|
}>> & Readonly<{
|
|
806
|
-
onRemove?: ((
|
|
937
|
+
onRemove?: ((args_0: {
|
|
938
|
+
fileItem: import('.').UploadFile;
|
|
939
|
+
fileIndex: number;
|
|
940
|
+
}) => any) | undefined;
|
|
807
941
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
808
|
-
remove: (
|
|
942
|
+
remove: (args_0: {
|
|
943
|
+
fileItem: import('.').UploadFile;
|
|
944
|
+
fileIndex: number;
|
|
945
|
+
}) => any;
|
|
809
946
|
}, string, {
|
|
810
947
|
disabled: boolean;
|
|
811
948
|
copperOptions: import('.').CopperOptions;
|
|
@@ -819,42 +956,26 @@ export declare const MtUploadImageOnlyLayout: {
|
|
|
819
956
|
};
|
|
820
957
|
disabled: {
|
|
821
958
|
type: BooleanConstructor;
|
|
822
|
-
|
|
823
|
-
limit: {
|
|
824
|
-
type: NumberConstructor;
|
|
825
|
-
};
|
|
826
|
-
multiple: {
|
|
827
|
-
type: BooleanConstructor;
|
|
828
|
-
};
|
|
829
|
-
suffixes: {
|
|
830
|
-
type: import('vue').PropType<string[]>;
|
|
831
|
-
};
|
|
832
|
-
onExceed: {
|
|
833
|
-
type: import('vue').PropType<(files: File[]) => void>;
|
|
834
|
-
default: typeof import('../utils').NOOP;
|
|
835
|
-
};
|
|
836
|
-
showTrigger: {
|
|
837
|
-
type: BooleanConstructor;
|
|
838
|
-
};
|
|
839
|
-
autoCropper: {
|
|
840
|
-
type: BooleanConstructor;
|
|
959
|
+
default: boolean;
|
|
841
960
|
};
|
|
842
961
|
copperOptions: {
|
|
843
962
|
type: import('vue').PropType<import('.').CopperOptions>;
|
|
963
|
+
default: () => {};
|
|
844
964
|
};
|
|
845
965
|
}>> & Readonly<{
|
|
846
|
-
onRemove?: ((
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
966
|
+
onRemove?: ((args_0: {
|
|
967
|
+
fileItem: import('.').UploadFile;
|
|
968
|
+
fileIndex: number;
|
|
969
|
+
}) => any) | undefined;
|
|
970
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
971
|
+
remove: (args_0: {
|
|
972
|
+
fileItem: import('.').UploadFile;
|
|
973
|
+
fileIndex: number;
|
|
974
|
+
}) => any;
|
|
851
975
|
}, import('vue').PublicProps, {
|
|
852
976
|
disabled: boolean;
|
|
853
|
-
|
|
854
|
-
showTrigger: boolean;
|
|
855
|
-
autoCropper: boolean;
|
|
977
|
+
copperOptions: import('.').CopperOptions;
|
|
856
978
|
fileList: import('.').UploadFile[];
|
|
857
|
-
onExceed: (files: File[]) => void;
|
|
858
979
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
859
980
|
copperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
860
981
|
open(source: File | string): Promise<{
|
|
@@ -876,7 +997,6 @@ export declare const MtUploadImageOnlyLayout: {
|
|
|
876
997
|
}>;
|
|
877
998
|
close(): void;
|
|
878
999
|
}, {}, {}, {}, {}> | null;
|
|
879
|
-
inputRef: HTMLInputElement;
|
|
880
1000
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
881
1001
|
P: {};
|
|
882
1002
|
B: {};
|
|
@@ -891,40 +1011,21 @@ export declare const MtUploadImageOnlyLayout: {
|
|
|
891
1011
|
};
|
|
892
1012
|
disabled: {
|
|
893
1013
|
type: BooleanConstructor;
|
|
894
|
-
|
|
895
|
-
limit: {
|
|
896
|
-
type: NumberConstructor;
|
|
897
|
-
};
|
|
898
|
-
multiple: {
|
|
899
|
-
type: BooleanConstructor;
|
|
900
|
-
};
|
|
901
|
-
suffixes: {
|
|
902
|
-
type: import('vue').PropType<string[]>;
|
|
903
|
-
};
|
|
904
|
-
onExceed: {
|
|
905
|
-
type: import('vue').PropType<(files: File[]) => void>;
|
|
906
|
-
default: typeof import('../utils').NOOP;
|
|
907
|
-
};
|
|
908
|
-
showTrigger: {
|
|
909
|
-
type: BooleanConstructor;
|
|
910
|
-
};
|
|
911
|
-
autoCropper: {
|
|
912
|
-
type: BooleanConstructor;
|
|
1014
|
+
default: boolean;
|
|
913
1015
|
};
|
|
914
1016
|
copperOptions: {
|
|
915
1017
|
type: import('vue').PropType<import('.').CopperOptions>;
|
|
1018
|
+
default: () => {};
|
|
916
1019
|
};
|
|
917
1020
|
}>> & Readonly<{
|
|
918
|
-
onRemove?: ((
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1021
|
+
onRemove?: ((args_0: {
|
|
1022
|
+
fileItem: import('.').UploadFile;
|
|
1023
|
+
fileIndex: number;
|
|
1024
|
+
}) => any) | undefined;
|
|
1025
|
+
}>, {}, {}, {}, {}, {
|
|
922
1026
|
disabled: boolean;
|
|
923
|
-
|
|
924
|
-
showTrigger: boolean;
|
|
925
|
-
autoCropper: boolean;
|
|
1027
|
+
copperOptions: import('.').CopperOptions;
|
|
926
1028
|
fileList: import('.').UploadFile[];
|
|
927
|
-
onExceed: (files: File[]) => void;
|
|
928
1029
|
}>;
|
|
929
1030
|
__isFragment?: never;
|
|
930
1031
|
__isTeleport?: never;
|
|
@@ -936,45 +1037,27 @@ export declare const MtUploadImageOnlyLayout: {
|
|
|
936
1037
|
};
|
|
937
1038
|
disabled: {
|
|
938
1039
|
type: BooleanConstructor;
|
|
939
|
-
|
|
940
|
-
limit: {
|
|
941
|
-
type: NumberConstructor;
|
|
942
|
-
};
|
|
943
|
-
multiple: {
|
|
944
|
-
type: BooleanConstructor;
|
|
945
|
-
};
|
|
946
|
-
suffixes: {
|
|
947
|
-
type: import('vue').PropType<string[]>;
|
|
948
|
-
};
|
|
949
|
-
onExceed: {
|
|
950
|
-
type: import('vue').PropType<(files: File[]) => void>;
|
|
951
|
-
default: typeof import('../utils').NOOP;
|
|
952
|
-
};
|
|
953
|
-
showTrigger: {
|
|
954
|
-
type: BooleanConstructor;
|
|
955
|
-
};
|
|
956
|
-
autoCropper: {
|
|
957
|
-
type: BooleanConstructor;
|
|
1040
|
+
default: boolean;
|
|
958
1041
|
};
|
|
959
1042
|
copperOptions: {
|
|
960
1043
|
type: import('vue').PropType<import('.').CopperOptions>;
|
|
1044
|
+
default: () => {};
|
|
961
1045
|
};
|
|
962
1046
|
}>> & Readonly<{
|
|
963
|
-
onRemove?: ((
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
|
|
1047
|
+
onRemove?: ((args_0: {
|
|
1048
|
+
fileItem: import('.').UploadFile;
|
|
1049
|
+
fileIndex: number;
|
|
1050
|
+
}) => any) | undefined;
|
|
1051
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1052
|
+
remove: (args_0: {
|
|
1053
|
+
fileItem: import('.').UploadFile;
|
|
1054
|
+
fileIndex: number;
|
|
1055
|
+
}) => any;
|
|
968
1056
|
}, string, {
|
|
969
1057
|
disabled: boolean;
|
|
970
|
-
|
|
971
|
-
showTrigger: boolean;
|
|
972
|
-
autoCropper: boolean;
|
|
1058
|
+
copperOptions: import('.').CopperOptions;
|
|
973
1059
|
fileList: import('.').UploadFile[];
|
|
974
|
-
|
|
975
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
976
|
-
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
977
|
-
}) & import('vue').Plugin;
|
|
1060
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
978
1061
|
export default MtUpload;
|
|
979
1062
|
export type * from './src/upload';
|
|
980
|
-
export { formatUploadFiles } from './src/upload';
|
|
1063
|
+
export { formatUploadFiles, ListTypeEnum, SceneIdEnum } from './src/upload';
|