@mingto/mt-ui 1.1.38 → 1.1.40

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.
Files changed (95) hide show
  1. package/README.md +53 -45
  2. package/dist/avatar-image/index.d.ts +3 -3
  3. package/dist/avatar-image/src/avatar-image.vue.d.ts +1 -1
  4. package/dist/avatar-text/index.d.ts +2 -2
  5. package/dist/avatar-text/src/avatar-text.vue.d.ts +3 -2
  6. package/dist/backtop/index.d.ts +2 -2
  7. package/dist/backtop/src/backtop.d.ts +1 -1
  8. package/dist/backtop/src/backtop.vue.d.ts +1 -1
  9. package/dist/badge/index.d.ts +3 -3
  10. package/dist/badge/src/badge.vue.d.ts +1 -1
  11. package/dist/button/index.d.ts +44 -26
  12. package/dist/button/src/button.vue.d.ts +25 -13
  13. package/dist/cell/index.d.ts +15 -22
  14. package/dist/cell/src/cell.vue.d.ts +9 -16
  15. package/dist/cell-group/index.d.ts +8 -6
  16. package/dist/cell-group/src/cell-group.d.ts +6 -6
  17. package/dist/config-provider/index.d.ts +12 -3
  18. package/dist/config-provider/src/config-provider.d.ts +41 -6
  19. package/dist/dialog/index.d.ts +29 -29
  20. package/dist/dialog/src/dialog.d.ts +2 -2
  21. package/dist/dialog/src/dialog.vue.d.ts +15 -14
  22. package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +1 -37
  23. package/dist/empty/index.d.ts +3 -3
  24. package/dist/empty/src/empty.d.ts +1 -1
  25. package/dist/empty/src/empty.vue.d.ts +2 -2
  26. package/dist/fade-transition/index.d.ts +5 -5
  27. package/dist/fade-transition/src/fade-transition.vue.d.ts +2 -2
  28. package/dist/file-preview/src/ai-music-preview.vue.d.ts +17 -16
  29. package/dist/file-preview/src/iframe-preview.vue.d.ts +3 -2
  30. package/dist/file-preview/src/image-preview.vue.d.ts +3 -2
  31. package/dist/file-preview/src/music-preview.vue.d.ts +3 -2
  32. package/dist/hooks/dom/use-z-index.d.ts +4 -1
  33. package/dist/hooks/event/use-same-target.d.ts +4 -2
  34. package/dist/hooks/index.d.ts +1 -0
  35. package/dist/hooks/locale/use-locale.d.ts +2 -2
  36. package/dist/hooks/use-namespace/index.d.ts +23 -0
  37. package/dist/hooks/vue/use-children.d.ts +6 -3
  38. package/dist/image/index.d.ts +25 -10
  39. package/dist/image/src/image.d.ts +7 -0
  40. package/dist/image/src/image.vue.d.ts +15 -5
  41. package/dist/index.es.js +67693 -64647
  42. package/dist/index.umd.js +68543 -106524
  43. package/dist/infinite-scroll/index.d.ts +27 -27
  44. package/dist/infinite-scroll/src/infinite-scroll.d.ts +7 -4
  45. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +18 -16
  46. package/dist/loading/src/loading.d.ts +3 -1
  47. package/dist/locale/index.d.ts +2 -0
  48. package/dist/locale/lang/ar.d.ts +8 -0
  49. package/dist/locale/lang/en.d.ts +8 -0
  50. package/dist/locale/lang/ms.d.ts +8 -0
  51. package/dist/locale/lang/th.d.ts +8 -0
  52. package/dist/locale/lang/vi.d.ts +8 -0
  53. package/dist/locale/lang/zh-cn.d.ts +8 -0
  54. package/dist/locale/lang/zh-tw.d.ts +8 -0
  55. package/dist/message/src/message.d.ts +1 -1
  56. package/dist/message/src/message.vue.d.ts +4 -4
  57. package/dist/popover/index.d.ts +28 -28
  58. package/dist/popover/src/content.vue.d.ts +6 -10
  59. package/dist/popover/src/popover.vue.d.ts +15 -15
  60. package/dist/poster/src/method.d.ts +3 -3
  61. package/dist/progress/index.d.ts +16 -13
  62. package/dist/progress/src/progress.d.ts +2 -2
  63. package/dist/progress/src/progress.vue.d.ts +10 -7
  64. package/dist/qrcode/index.d.ts +3 -3
  65. package/dist/qrcode/src/qrcode.vue.d.ts +1 -1
  66. package/dist/style.css +544 -373
  67. package/dist/tab/src/tab.d.ts +2 -1
  68. package/dist/table/index.d.ts +2 -4
  69. package/dist/table/src/table.vue.d.ts +2 -4
  70. package/dist/table-column/index.d.ts +3 -6
  71. package/dist/table-column/src/table-column.vue.d.ts +3 -6
  72. package/dist/tabs/index.d.ts +8 -8
  73. package/dist/tabs/src/tabs.d.ts +1 -0
  74. package/dist/tabs/src/tabs.vue.d.ts +3 -3
  75. package/dist/tag/index.d.ts +17 -17
  76. package/dist/tag/src/tag.d.ts +6 -2
  77. package/dist/tag/src/tag.vue.d.ts +8 -8
  78. package/dist/tooltip/index.d.ts +60 -53
  79. package/dist/tooltip/src/tooltip.vue.d.ts +78 -77
  80. package/dist/upload/index.d.ts +320 -237
  81. package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +8 -2
  82. package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +8 -2
  83. package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +8 -2
  84. package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +1 -1
  85. package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +8 -2
  86. package/dist/upload/src/upload-content.d.ts +15 -4
  87. package/dist/upload/src/upload-content.vue.d.ts +41 -16
  88. package/dist/upload/src/upload.d.ts +16 -7
  89. package/dist/upload/src/upload.vue.d.ts +407 -213
  90. package/dist/utils/class/deferred.d.ts +8 -5
  91. package/dist/utils/prop/size.d.ts +1 -1
  92. package/dist/utils/vue/children.d.ts +1 -3
  93. package/dist/utils/vue/install.d.ts +2 -2
  94. package/package.json +5 -3
  95. /package/dist/upload/src/{use-full-scree-drag.d.ts → use-full-screen-drag.d.ts} +0 -0
@@ -1,14 +1,15 @@
1
1
  import { IUploadFileSuccessResponse } from '@mingto/obs-server';
2
+ import { VNode } from 'vue';
2
3
  import { UploadFile, UploadRawFile, ListTypeEnum } from './upload';
3
4
  import { fileSizeLimitConfigMap } from './upload-config';
4
5
  declare function __VLS_template(): {
5
6
  attrs: Partial<{}>;
6
7
  slots: Readonly<{
7
- trigger?: any;
8
- tip?: any;
8
+ trigger?: () => VNode[];
9
+ tip?: () => VNode[];
9
10
  }> & {
10
- trigger?: any;
11
- tip?: any;
11
+ trigger?: () => VNode[];
12
+ tip?: () => VNode[];
12
13
  };
13
14
  refs: {
14
15
  uploadImageOnlyTriggerRef: ({
@@ -31,7 +32,10 @@ declare function __VLS_template(): {
31
32
  readonly limit?: number | undefined;
32
33
  readonly suffixes?: string[] | undefined;
33
34
  readonly copperOptions?: import('./upload').CopperOptions | undefined;
34
- readonly onRemove?: ((...args: any[]) => any) | undefined;
35
+ readonly onRemove?: ((args_0: {
36
+ fileItem: UploadFile;
37
+ fileIndex: number;
38
+ }) => any) | undefined;
35
39
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
36
40
  $attrs: import('vue').Attrs;
37
41
  $refs: {
@@ -65,7 +69,10 @@ declare function __VLS_template(): {
65
69
  $root: import('vue').ComponentPublicInstance | null;
66
70
  $parent: import('vue').ComponentPublicInstance | null;
67
71
  $host: Element | null;
68
- $emit: (event: "remove", ...args: any[]) => void;
72
+ $emit: (event: "remove", args_0: {
73
+ fileItem: UploadFile;
74
+ fileIndex: number;
75
+ }) => void;
69
76
  $el: HTMLDivElement;
70
77
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
71
78
  fileList: {
@@ -98,11 +105,17 @@ declare function __VLS_template(): {
98
105
  type: import('vue').PropType<import('./upload').CopperOptions>;
99
106
  };
100
107
  }>> & Readonly<{
101
- onRemove?: ((...args: any[]) => any) | undefined;
108
+ onRemove?: ((args_0: {
109
+ fileItem: UploadFile;
110
+ fileIndex: number;
111
+ }) => any) | undefined;
102
112
  }>, {
103
113
  choose(): void;
104
114
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
105
- remove: (...args: any[]) => void;
115
+ remove: (args_0: {
116
+ fileItem: UploadFile;
117
+ fileIndex: number;
118
+ }) => any;
106
119
  }, string, {
107
120
  disabled: boolean;
108
121
  multiple: boolean;
@@ -129,7 +142,8 @@ declare function __VLS_template(): {
129
142
  };
130
143
  $forceUpdate: () => void;
131
144
  $nextTick: typeof import('vue').nextTick;
132
- $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;
145
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (
146
+ /** @type { [typeof UploadFileListLayout, ] } */ ...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
133
147
  } & Readonly<{
134
148
  disabled: boolean;
135
149
  multiple: boolean;
@@ -168,91 +182,172 @@ declare function __VLS_template(): {
168
182
  type: import('vue').PropType<import('./upload').CopperOptions>;
169
183
  };
170
184
  }>> & Readonly<{
171
- onRemove?: ((...args: any[]) => any) | undefined;
185
+ onRemove?: ((args_0: {
186
+ fileItem: UploadFile;
187
+ fileIndex: number;
188
+ }) => any) | undefined;
172
189
  }>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
173
190
  choose: () => void;
174
191
  } & {} & import('vue').ComponentCustomProperties & {} & {
175
192
  $slots: Readonly<Record<string, any>> & Record<string, any>;
176
193
  }) | null;
177
- uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
178
- fileList: {
179
- type: import('vue').PropType<UploadFile[]>;
180
- default: () => never[];
181
- };
182
- limit: {
183
- type: NumberConstructor;
184
- };
185
- multiple: {
186
- type: BooleanConstructor;
187
- };
188
- size: {
189
- type: NumberConstructor;
190
- };
191
- suffixes: {
192
- type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
193
- };
194
- disabled: {
195
- type: BooleanConstructor;
196
- };
197
- onExceed: {
198
- type: import('vue').PropType<(files: File[]) => void>;
199
- default: typeof import('../../utils').NOOP;
200
- };
201
- onStart: {
202
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
203
- default: () => void;
204
- };
205
- onReload: {
206
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
207
- default: typeof import('../../utils').NOOP;
208
- };
209
- onProgress: {
210
- type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
211
- default: typeof import('../../utils').NOOP;
212
- };
213
- onError: {
214
- type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
215
- default: typeof import('../../utils').NOOP;
216
- };
217
- onSuccess: {
218
- type: import('vue').PropType<(response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
219
- default: typeof import('../../utils').NOOP;
220
- };
221
- onRemove: {
222
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
223
- default: typeof import('../../utils').NOOP;
194
+ uploadRef: ({
195
+ $: import('vue').ComponentInternalInstance;
196
+ $data: {};
197
+ $props: Partial<{
198
+ onError: (error: Error, rawFile: UploadRawFile) => void;
199
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
200
+ disabled: boolean;
201
+ multiple: boolean;
202
+ sceneId: import('./upload').SceneIdEnum;
203
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
204
+ fileList: UploadFile[];
205
+ onRemove: (rawFile: UploadRawFile) => void;
206
+ onExceed: (files: File[]) => void;
207
+ onStart: (rawFile: UploadRawFile) => void;
208
+ onReload: (rawFile: UploadRawFile) => void;
209
+ onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
210
+ }> & Omit<{
211
+ readonly onError: (error: Error, rawFile: UploadRawFile) => void;
212
+ readonly onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
213
+ readonly disabled: boolean;
214
+ readonly multiple: boolean;
215
+ readonly sceneId: import('./upload').SceneIdEnum;
216
+ readonly beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
217
+ readonly fileList: UploadFile[];
218
+ readonly onRemove: (rawFile: UploadRawFile) => void;
219
+ readonly onExceed: (files: File[]) => void;
220
+ readonly onStart: (rawFile: UploadRawFile) => void;
221
+ readonly onReload: (rawFile: UploadRawFile) => void;
222
+ readonly onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
223
+ readonly size?: number | undefined;
224
+ readonly limit?: number | undefined;
225
+ readonly suffixes?: import('@mingto/tools').FileSuffix[] | undefined;
226
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess">;
227
+ $attrs: import('vue').Attrs;
228
+ $refs: {
229
+ [x: string]: unknown;
230
+ } & {
231
+ inputRef: HTMLInputElement;
224
232
  };
225
- beforeUpload: {
226
- type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
227
- default: typeof import('../../utils').NOOP;
233
+ $slots: Readonly<{
234
+ [name: string]: import('vue').Slot<any> | undefined;
235
+ }>;
236
+ $root: import('vue').ComponentPublicInstance | null;
237
+ $parent: import('vue').ComponentPublicInstance | null;
238
+ $host: Element | null;
239
+ $emit: (event: string, ...args: any[]) => void;
240
+ $el: HTMLDivElement;
241
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
242
+ fileList: {
243
+ type: import('vue').PropType<UploadFile[]>;
244
+ default: () => never[];
245
+ };
246
+ limit: {
247
+ type: NumberConstructor;
248
+ };
249
+ multiple: {
250
+ type: BooleanConstructor;
251
+ };
252
+ size: {
253
+ type: NumberConstructor;
254
+ };
255
+ suffixes: {
256
+ type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
257
+ };
258
+ disabled: {
259
+ type: BooleanConstructor;
260
+ };
261
+ sceneId: {
262
+ type: import('vue').PropType<import('./upload').SceneIdEnum>;
263
+ default: import('./upload').SceneIdEnum;
264
+ values: import('./upload').SceneIdEnum[];
265
+ };
266
+ onExceed: {
267
+ type: import('vue').PropType<(files: File[]) => void>;
268
+ default: typeof import('../../utils').NOOP;
269
+ };
270
+ onStart: {
271
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
272
+ default: () => void;
273
+ };
274
+ onReload: {
275
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
276
+ default: typeof import('../../utils').NOOP;
277
+ };
278
+ onProgress: {
279
+ type: import('vue').PropType<(event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
280
+ default: typeof import('../../utils').NOOP;
281
+ };
282
+ onError: {
283
+ type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
284
+ default: typeof import('../../utils').NOOP;
285
+ };
286
+ onSuccess: {
287
+ type: import('vue').PropType<(response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
288
+ default: typeof import('../../utils').NOOP;
289
+ };
290
+ onRemove: {
291
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
292
+ default: typeof import('../../utils').NOOP;
293
+ };
294
+ beforeUpload: {
295
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
296
+ default: () => Promise<boolean>;
297
+ };
298
+ }>> & Readonly<{}>, {
299
+ abort: (uploadFile: UploadFile) => void;
300
+ upload: (files: File[]) => Promise<void>;
301
+ reload: (uid: number, file: File) => Promise<void>;
302
+ choose: () => Promise<void>;
303
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
304
+ onError: (error: Error, rawFile: UploadRawFile) => void;
305
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
306
+ disabled: boolean;
307
+ multiple: boolean;
308
+ sceneId: import('./upload').SceneIdEnum;
309
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
310
+ fileList: UploadFile[];
311
+ onRemove: (rawFile: UploadRawFile) => void;
312
+ onExceed: (files: File[]) => void;
313
+ onStart: (rawFile: UploadRawFile) => void;
314
+ onReload: (rawFile: UploadRawFile) => void;
315
+ onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
316
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
317
+ beforeCreate?: (() => void) | (() => void)[];
318
+ created?: (() => void) | (() => void)[];
319
+ beforeMount?: (() => void) | (() => void)[];
320
+ mounted?: (() => void) | (() => void)[];
321
+ beforeUpdate?: (() => void) | (() => void)[];
322
+ updated?: (() => void) | (() => void)[];
323
+ activated?: (() => void) | (() => void)[];
324
+ deactivated?: (() => void) | (() => void)[];
325
+ beforeDestroy?: (() => void) | (() => void)[];
326
+ beforeUnmount?: (() => void) | (() => void)[];
327
+ destroyed?: (() => void) | (() => void)[];
328
+ unmounted?: (() => void) | (() => void)[];
329
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
330
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
331
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
228
332
  };
229
- }>> & Readonly<{}>, {
230
- abort: (uploadFile?: UploadFile) => void;
231
- choose: () => void;
232
- reload: (uid: number, file: File) => void;
233
- upload: (files: Array<File>) => void;
234
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
333
+ $forceUpdate: () => void;
334
+ $nextTick: typeof import('vue').nextTick;
335
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (
336
+ /** @type { [typeof UploadFileListLayout, ] } */ ...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
337
+ } & Readonly<{
235
338
  onError: (error: Error, rawFile: UploadRawFile) => void;
236
- onProgress: (evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
339
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
237
340
  disabled: boolean;
238
341
  multiple: boolean;
239
- beforeUpload: (rawFile: UploadRawFile) => Promise<boolean> | boolean;
342
+ sceneId: import('./upload').SceneIdEnum;
343
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
240
344
  fileList: UploadFile[];
241
345
  onRemove: (rawFile: UploadRawFile) => void;
242
346
  onExceed: (files: File[]) => void;
243
347
  onStart: (rawFile: UploadRawFile) => void;
244
348
  onReload: (rawFile: UploadRawFile) => void;
245
349
  onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
246
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
247
- inputRef: HTMLInputElement;
248
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
249
- P: {};
250
- B: {};
251
- D: {};
252
- C: {};
253
- M: {};
254
- Defaults: {};
255
- }, Readonly<import('vue').ExtractPropTypes<{
350
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
256
351
  fileList: {
257
352
  type: import('vue').PropType<UploadFile[]>;
258
353
  default: () => never[];
@@ -272,6 +367,11 @@ declare function __VLS_template(): {
272
367
  disabled: {
273
368
  type: BooleanConstructor;
274
369
  };
370
+ sceneId: {
371
+ type: import('vue').PropType<import('./upload').SceneIdEnum>;
372
+ default: import('./upload').SceneIdEnum;
373
+ values: import('./upload').SceneIdEnum[];
374
+ };
275
375
  onExceed: {
276
376
  type: import('vue').PropType<(files: File[]) => void>;
277
377
  default: typeof import('../../utils').NOOP;
@@ -285,7 +385,7 @@ declare function __VLS_template(): {
285
385
  default: typeof import('../../utils').NOOP;
286
386
  };
287
387
  onProgress: {
288
- type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
388
+ type: import('vue').PropType<(event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
289
389
  default: typeof import('../../utils').NOOP;
290
390
  };
291
391
  onError: {
@@ -301,27 +401,19 @@ declare function __VLS_template(): {
301
401
  default: typeof import('../../utils').NOOP;
302
402
  };
303
403
  beforeUpload: {
304
- type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
305
- default: typeof import('../../utils').NOOP;
404
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
405
+ default: () => Promise<boolean>;
406
+ };
407
+ }>> & Readonly<{}>, "abort" | "choose" | "reload" | ("onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess") | "upload"> & {
408
+ abort: (uploadFile: UploadFile) => void;
409
+ upload: (files: File[]) => Promise<void>;
410
+ reload: (uid: number, file: File) => Promise<void>;
411
+ choose: () => Promise<void>;
412
+ } & {} & import('vue').ComponentCustomProperties & {} & {
413
+ $slots: {
414
+ default?(_: {}): any;
306
415
  };
307
- }>> & Readonly<{}>, {
308
- abort: (uploadFile?: UploadFile) => void;
309
- choose: () => void;
310
- reload: (uid: number, file: File) => void;
311
- upload: (files: Array<File>) => void;
312
- }, {}, {}, {}, {
313
- onError: (error: Error, rawFile: UploadRawFile) => void;
314
- onProgress: (evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
315
- disabled: boolean;
316
- multiple: boolean;
317
- beforeUpload: (rawFile: UploadRawFile) => Promise<boolean> | boolean;
318
- fileList: UploadFile[];
319
- onRemove: (rawFile: UploadRawFile) => void;
320
- onExceed: (files: File[]) => void;
321
- onStart: (rawFile: UploadRawFile) => void;
322
- onReload: (rawFile: UploadRawFile) => void;
323
- onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
324
- }> | null;
416
+ }) | null;
325
417
  };
326
418
  rootEl: HTMLDivElement;
327
419
  };
@@ -341,12 +433,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
341
433
  };
342
434
  readonly suffixes: {
343
435
  readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
344
- 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")[];
436
+ 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")[];
345
437
  };
346
438
  readonly disabled: {
347
439
  readonly type: BooleanConstructor;
348
440
  readonly default: false;
349
441
  };
442
+ readonly sceneId: {
443
+ readonly type: import('vue').PropType<import('./upload').SceneIdEnum>;
444
+ readonly default: import("./upload").SceneIdEnum.PUBLIC;
445
+ readonly values: import('./upload').SceneIdEnum[];
446
+ };
350
447
  readonly listType: {
351
448
  readonly type: import('vue').PropType<ListTypeEnum>;
352
449
  readonly default: ListTypeEnum.FILE_LIST;
@@ -360,7 +457,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
360
457
  readonly type: BooleanConstructor;
361
458
  readonly default: false;
362
459
  };
363
- readonly isFullScreeDrag: {
460
+ readonly isFullScreenDrag: {
364
461
  readonly type: BooleanConstructor;
365
462
  readonly default: false;
366
463
  };
@@ -382,8 +479,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
382
479
  readonly default: () => {};
383
480
  };
384
481
  readonly beforeUpload: {
385
- readonly type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean | void>>;
386
- readonly default: () => Promise<void>;
482
+ readonly type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
483
+ readonly default: () => Promise<boolean>;
387
484
  };
388
485
  }>, {
389
486
  abort(uploadFile: UploadFile): void;
@@ -394,21 +491,21 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
394
491
  }[] | UploadFile[]): UploadFile[];
395
492
  validate(isRequired?: boolean): boolean;
396
493
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
494
+ "update:modelValue": (args_0: UploadFile[]) => any;
397
495
  error: (args_0: {
398
496
  error: Error;
399
497
  uploadFile: UploadFile;
400
498
  uploadFiles: UploadFile[];
401
499
  }) => any;
402
- change: (args_0: {
500
+ success: (args_0: {
501
+ response: IUploadFileSuccessResponse;
403
502
  uploadFile: UploadFile;
404
503
  uploadFiles: UploadFile[];
405
504
  }) => any;
406
- success: (args_0: {
407
- response: IUploadFileSuccessResponse;
505
+ change: (args_0: {
408
506
  uploadFile: UploadFile;
409
507
  uploadFiles: UploadFile[];
410
508
  }) => any;
411
- "update:modelValue": (args_0: UploadFile[]) => any;
412
509
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
413
510
  readonly modelValue: {
414
511
  readonly type: import('vue').PropType<UploadFile[]>;
@@ -424,12 +521,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
424
521
  };
425
522
  readonly suffixes: {
426
523
  readonly type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
427
- 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")[];
524
+ 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")[];
428
525
  };
429
526
  readonly disabled: {
430
527
  readonly type: BooleanConstructor;
431
528
  readonly default: false;
432
529
  };
530
+ readonly sceneId: {
531
+ readonly type: import('vue').PropType<import('./upload').SceneIdEnum>;
532
+ readonly default: import("./upload").SceneIdEnum.PUBLIC;
533
+ readonly values: import('./upload').SceneIdEnum[];
534
+ };
433
535
  readonly listType: {
434
536
  readonly type: import('vue').PropType<ListTypeEnum>;
435
537
  readonly default: ListTypeEnum.FILE_LIST;
@@ -443,7 +545,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
443
545
  readonly type: BooleanConstructor;
444
546
  readonly default: false;
445
547
  };
446
- readonly isFullScreeDrag: {
548
+ readonly isFullScreenDrag: {
447
549
  readonly type: BooleanConstructor;
448
550
  readonly default: false;
449
551
  };
@@ -465,40 +567,41 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
465
567
  readonly default: () => {};
466
568
  };
467
569
  readonly beforeUpload: {
468
- readonly type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean | void>>;
469
- readonly default: () => Promise<void>;
570
+ readonly type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
571
+ readonly default: () => Promise<boolean>;
470
572
  };
471
573
  }>> & Readonly<{
574
+ "onUpdate:modelValue"?: ((args_0: UploadFile[]) => any) | undefined;
472
575
  onError?: ((args_0: {
473
576
  error: Error;
474
577
  uploadFile: UploadFile;
475
578
  uploadFiles: UploadFile[];
476
579
  }) => any) | undefined;
477
- onChange?: ((args_0: {
580
+ onSuccess?: ((args_0: {
581
+ response: IUploadFileSuccessResponse;
478
582
  uploadFile: UploadFile;
479
583
  uploadFiles: UploadFile[];
480
584
  }) => any) | undefined;
481
- onSuccess?: ((args_0: {
482
- response: IUploadFileSuccessResponse;
585
+ onChange?: ((args_0: {
483
586
  uploadFile: UploadFile;
484
587
  uploadFiles: UploadFile[];
485
588
  }) => any) | undefined;
486
- "onUpdate:modelValue"?: ((args_0: UploadFile[]) => any) | undefined;
487
589
  }>, {
488
590
  readonly size: number;
489
- readonly disabled: boolean;
490
591
  readonly modelValue: UploadFile[];
592
+ readonly disabled: boolean;
491
593
  readonly limit: number;
492
594
  readonly multiple: boolean;
493
595
  readonly suffixes: import('@mingto/tools').FileSuffix[];
596
+ readonly sceneId: import('./upload').SceneIdEnum;
494
597
  readonly listType: ListTypeEnum;
495
598
  readonly showTrigger: boolean;
496
599
  readonly showList: boolean;
497
- readonly isFullScreeDrag: boolean;
600
+ readonly isFullScreenDrag: boolean;
498
601
  readonly sizeType: keyof Map<string, Record<import('@mingto/tools').FileSuffix, number>>;
499
602
  readonly autoCropper: boolean;
500
603
  readonly copperOptions: import('./upload').CopperOptions;
501
- readonly beforeUpload: (rawFile: UploadRawFile) => Promise<boolean | void>;
604
+ readonly beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
502
605
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
503
606
  uploadImageOnlyTriggerRef: ({
504
607
  $: import('vue').ComponentInternalInstance;
@@ -520,7 +623,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
520
623
  readonly limit?: number | undefined;
521
624
  readonly suffixes?: string[] | undefined;
522
625
  readonly copperOptions?: import('./upload').CopperOptions | undefined;
523
- readonly onRemove?: ((...args: any[]) => any) | undefined;
626
+ readonly onRemove?: ((args_0: {
627
+ fileItem: UploadFile;
628
+ fileIndex: number;
629
+ }) => any) | undefined;
524
630
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed">;
525
631
  $attrs: import('vue').Attrs;
526
632
  $refs: {
@@ -554,7 +660,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
554
660
  $root: import('vue').ComponentPublicInstance | null;
555
661
  $parent: import('vue').ComponentPublicInstance | null;
556
662
  $host: Element | null;
557
- $emit: (event: "remove", ...args: any[]) => void;
663
+ $emit: (event: "remove", args_0: {
664
+ fileItem: UploadFile;
665
+ fileIndex: number;
666
+ }) => void;
558
667
  $el: HTMLDivElement;
559
668
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
560
669
  fileList: {
@@ -587,11 +696,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
587
696
  type: import('vue').PropType<import('./upload').CopperOptions>;
588
697
  };
589
698
  }>> & Readonly<{
590
- onRemove?: ((...args: any[]) => any) | undefined;
699
+ onRemove?: ((args_0: {
700
+ fileItem: UploadFile;
701
+ fileIndex: number;
702
+ }) => any) | undefined;
591
703
  }>, {
592
704
  choose(): void;
593
705
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
594
- remove: (...args: any[]) => void;
706
+ remove: (args_0: {
707
+ fileItem: UploadFile;
708
+ fileIndex: number;
709
+ }) => any;
595
710
  }, string, {
596
711
  disabled: boolean;
597
712
  multiple: boolean;
@@ -618,7 +733,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
618
733
  };
619
734
  $forceUpdate: () => void;
620
735
  $nextTick: typeof import('vue').nextTick;
621
- $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;
736
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (
737
+ /** @type { [typeof UploadFileListLayout, ] } */ ...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
622
738
  } & Readonly<{
623
739
  disabled: boolean;
624
740
  multiple: boolean;
@@ -657,91 +773,172 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
657
773
  type: import('vue').PropType<import('./upload').CopperOptions>;
658
774
  };
659
775
  }>> & Readonly<{
660
- onRemove?: ((...args: any[]) => any) | undefined;
776
+ onRemove?: ((args_0: {
777
+ fileItem: UploadFile;
778
+ fileIndex: number;
779
+ }) => any) | undefined;
661
780
  }>, "choose" | ("disabled" | "multiple" | "showTrigger" | "autoCropper" | "fileList" | "onExceed")> & {
662
781
  choose: () => void;
663
782
  } & {} & import('vue').ComponentCustomProperties & {} & {
664
783
  $slots: Readonly<Record<string, any>> & Record<string, any>;
665
784
  }) | null;
666
- uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
667
- fileList: {
668
- type: import('vue').PropType<UploadFile[]>;
669
- default: () => never[];
670
- };
671
- limit: {
672
- type: NumberConstructor;
673
- };
674
- multiple: {
675
- type: BooleanConstructor;
676
- };
677
- size: {
678
- type: NumberConstructor;
679
- };
680
- suffixes: {
681
- type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
682
- };
683
- disabled: {
684
- type: BooleanConstructor;
685
- };
686
- onExceed: {
687
- type: import('vue').PropType<(files: File[]) => void>;
688
- default: typeof import('../../utils').NOOP;
689
- };
690
- onStart: {
691
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
692
- default: () => void;
693
- };
694
- onReload: {
695
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
696
- default: typeof import('../../utils').NOOP;
697
- };
698
- onProgress: {
699
- type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
700
- default: typeof import('../../utils').NOOP;
701
- };
702
- onError: {
703
- type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
704
- default: typeof import('../../utils').NOOP;
705
- };
706
- onSuccess: {
707
- type: import('vue').PropType<(response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
708
- default: typeof import('../../utils').NOOP;
709
- };
710
- onRemove: {
711
- type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
712
- default: typeof import('../../utils').NOOP;
785
+ uploadRef: ({
786
+ $: import('vue').ComponentInternalInstance;
787
+ $data: {};
788
+ $props: Partial<{
789
+ onError: (error: Error, rawFile: UploadRawFile) => void;
790
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
791
+ disabled: boolean;
792
+ multiple: boolean;
793
+ sceneId: import('./upload').SceneIdEnum;
794
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
795
+ fileList: UploadFile[];
796
+ onRemove: (rawFile: UploadRawFile) => void;
797
+ onExceed: (files: File[]) => void;
798
+ onStart: (rawFile: UploadRawFile) => void;
799
+ onReload: (rawFile: UploadRawFile) => void;
800
+ onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
801
+ }> & Omit<{
802
+ readonly onError: (error: Error, rawFile: UploadRawFile) => void;
803
+ readonly onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
804
+ readonly disabled: boolean;
805
+ readonly multiple: boolean;
806
+ readonly sceneId: import('./upload').SceneIdEnum;
807
+ readonly beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
808
+ readonly fileList: UploadFile[];
809
+ readonly onRemove: (rawFile: UploadRawFile) => void;
810
+ readonly onExceed: (files: File[]) => void;
811
+ readonly onStart: (rawFile: UploadRawFile) => void;
812
+ readonly onReload: (rawFile: UploadRawFile) => void;
813
+ readonly onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
814
+ readonly size?: number | undefined;
815
+ readonly limit?: number | undefined;
816
+ readonly suffixes?: import('@mingto/tools').FileSuffix[] | undefined;
817
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess">;
818
+ $attrs: import('vue').Attrs;
819
+ $refs: {
820
+ [x: string]: unknown;
821
+ } & {
822
+ inputRef: HTMLInputElement;
713
823
  };
714
- beforeUpload: {
715
- type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
716
- default: typeof import('../../utils').NOOP;
824
+ $slots: Readonly<{
825
+ [name: string]: import('vue').Slot<any> | undefined;
826
+ }>;
827
+ $root: import('vue').ComponentPublicInstance | null;
828
+ $parent: import('vue').ComponentPublicInstance | null;
829
+ $host: Element | null;
830
+ $emit: (event: string, ...args: any[]) => void;
831
+ $el: HTMLDivElement;
832
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
833
+ fileList: {
834
+ type: import('vue').PropType<UploadFile[]>;
835
+ default: () => never[];
836
+ };
837
+ limit: {
838
+ type: NumberConstructor;
839
+ };
840
+ multiple: {
841
+ type: BooleanConstructor;
842
+ };
843
+ size: {
844
+ type: NumberConstructor;
845
+ };
846
+ suffixes: {
847
+ type: import('vue').PropType<import('@mingto/tools').FileSuffix[]>;
848
+ };
849
+ disabled: {
850
+ type: BooleanConstructor;
851
+ };
852
+ sceneId: {
853
+ type: import('vue').PropType<import('./upload').SceneIdEnum>;
854
+ default: import('./upload').SceneIdEnum;
855
+ values: import('./upload').SceneIdEnum[];
856
+ };
857
+ onExceed: {
858
+ type: import('vue').PropType<(files: File[]) => void>;
859
+ default: typeof import('../../utils').NOOP;
860
+ };
861
+ onStart: {
862
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
863
+ default: () => void;
864
+ };
865
+ onReload: {
866
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
867
+ default: typeof import('../../utils').NOOP;
868
+ };
869
+ onProgress: {
870
+ type: import('vue').PropType<(event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
871
+ default: typeof import('../../utils').NOOP;
872
+ };
873
+ onError: {
874
+ type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
875
+ default: typeof import('../../utils').NOOP;
876
+ };
877
+ onSuccess: {
878
+ type: import('vue').PropType<(response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
879
+ default: typeof import('../../utils').NOOP;
880
+ };
881
+ onRemove: {
882
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
883
+ default: typeof import('../../utils').NOOP;
884
+ };
885
+ beforeUpload: {
886
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
887
+ default: () => Promise<boolean>;
888
+ };
889
+ }>> & Readonly<{}>, {
890
+ abort: (uploadFile: UploadFile) => void;
891
+ upload: (files: File[]) => Promise<void>;
892
+ reload: (uid: number, file: File) => Promise<void>;
893
+ choose: () => Promise<void>;
894
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
895
+ onError: (error: Error, rawFile: UploadRawFile) => void;
896
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
897
+ disabled: boolean;
898
+ multiple: boolean;
899
+ sceneId: import('./upload').SceneIdEnum;
900
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
901
+ fileList: UploadFile[];
902
+ onRemove: (rawFile: UploadRawFile) => void;
903
+ onExceed: (files: File[]) => void;
904
+ onStart: (rawFile: UploadRawFile) => void;
905
+ onReload: (rawFile: UploadRawFile) => void;
906
+ onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
907
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
908
+ beforeCreate?: (() => void) | (() => void)[];
909
+ created?: (() => void) | (() => void)[];
910
+ beforeMount?: (() => void) | (() => void)[];
911
+ mounted?: (() => void) | (() => void)[];
912
+ beforeUpdate?: (() => void) | (() => void)[];
913
+ updated?: (() => void) | (() => void)[];
914
+ activated?: (() => void) | (() => void)[];
915
+ deactivated?: (() => void) | (() => void)[];
916
+ beforeDestroy?: (() => void) | (() => void)[];
917
+ beforeUnmount?: (() => void) | (() => void)[];
918
+ destroyed?: (() => void) | (() => void)[];
919
+ unmounted?: (() => void) | (() => void)[];
920
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
921
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
922
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
717
923
  };
718
- }>> & Readonly<{}>, {
719
- abort: (uploadFile?: UploadFile) => void;
720
- choose: () => void;
721
- reload: (uid: number, file: File) => void;
722
- upload: (files: Array<File>) => void;
723
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
924
+ $forceUpdate: () => void;
925
+ $nextTick: typeof import('vue').nextTick;
926
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (
927
+ /** @type { [typeof UploadFileListLayout, ] } */ ...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
928
+ } & Readonly<{
724
929
  onError: (error: Error, rawFile: UploadRawFile) => void;
725
- onProgress: (evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
930
+ onProgress: (event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
726
931
  disabled: boolean;
727
932
  multiple: boolean;
728
- beforeUpload: (rawFile: UploadRawFile) => Promise<boolean> | boolean;
933
+ sceneId: import('./upload').SceneIdEnum;
934
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
729
935
  fileList: UploadFile[];
730
936
  onRemove: (rawFile: UploadRawFile) => void;
731
937
  onExceed: (files: File[]) => void;
732
938
  onStart: (rawFile: UploadRawFile) => void;
733
939
  onReload: (rawFile: UploadRawFile) => void;
734
940
  onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
735
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
736
- inputRef: HTMLInputElement;
737
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
738
- P: {};
739
- B: {};
740
- D: {};
741
- C: {};
742
- M: {};
743
- Defaults: {};
744
- }, Readonly<import('vue').ExtractPropTypes<{
941
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
745
942
  fileList: {
746
943
  type: import('vue').PropType<UploadFile[]>;
747
944
  default: () => never[];
@@ -761,6 +958,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
761
958
  disabled: {
762
959
  type: BooleanConstructor;
763
960
  };
961
+ sceneId: {
962
+ type: import('vue').PropType<import('./upload').SceneIdEnum>;
963
+ default: import('./upload').SceneIdEnum;
964
+ values: import('./upload').SceneIdEnum[];
965
+ };
764
966
  onExceed: {
765
967
  type: import('vue').PropType<(files: File[]) => void>;
766
968
  default: typeof import('../../utils').NOOP;
@@ -774,7 +976,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
774
976
  default: typeof import('../../utils').NOOP;
775
977
  };
776
978
  onProgress: {
777
- type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
979
+ type: import('vue').PropType<(event: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
778
980
  default: typeof import('../../utils').NOOP;
779
981
  };
780
982
  onError: {
@@ -790,27 +992,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
790
992
  default: typeof import('../../utils').NOOP;
791
993
  };
792
994
  beforeUpload: {
793
- type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
794
- default: typeof import('../../utils').NOOP;
995
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean>>;
996
+ default: () => Promise<boolean>;
997
+ };
998
+ }>> & Readonly<{}>, "abort" | "choose" | "reload" | ("onError" | "onProgress" | "disabled" | "multiple" | "sceneId" | "beforeUpload" | "fileList" | "onRemove" | "onExceed" | "onStart" | "onReload" | "onSuccess") | "upload"> & {
999
+ abort: (uploadFile: UploadFile) => void;
1000
+ upload: (files: File[]) => Promise<void>;
1001
+ reload: (uid: number, file: File) => Promise<void>;
1002
+ choose: () => Promise<void>;
1003
+ } & {} & import('vue').ComponentCustomProperties & {} & {
1004
+ $slots: {
1005
+ default?(_: {}): any;
795
1006
  };
796
- }>> & Readonly<{}>, {
797
- abort: (uploadFile?: UploadFile) => void;
798
- choose: () => void;
799
- reload: (uid: number, file: File) => void;
800
- upload: (files: Array<File>) => void;
801
- }, {}, {}, {}, {
802
- onError: (error: Error, rawFile: UploadRawFile) => void;
803
- onProgress: (evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
804
- disabled: boolean;
805
- multiple: boolean;
806
- beforeUpload: (rawFile: UploadRawFile) => Promise<boolean> | boolean;
807
- fileList: UploadFile[];
808
- onRemove: (rawFile: UploadRawFile) => void;
809
- onExceed: (files: File[]) => void;
810
- onStart: (rawFile: UploadRawFile) => void;
811
- onReload: (rawFile: UploadRawFile) => void;
812
- onSuccess: (response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
813
- }> | null;
1007
+ }) | null;
814
1008
  }, HTMLDivElement>;
815
1009
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
816
1010
  export default _default;