@dazhicheng/ui 1.6.27 → 1.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/oss.d.ts +10 -0
- package/dist/api/oss.js +26 -0
- package/dist/components/tt-upload/index.d.ts +38 -23
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +19 -10
- package/dist/components/tt-upload/src/TtUpload.vue.js +185 -169
- package/dist/components/tt-upload/src/typing.d.ts +33 -2
- package/dist/components/tt-upload/src/typing.js +5 -0
- package/dist/components/types.d.ts +6 -4
- package/dist/hooks/useFormSchemasLink.d.ts +44 -8
- package/dist/hooks/useFormSchemasLink.js +258 -200
- package/dist/hooks/useScreenshotOss.d.ts +5 -3
- package/dist/hooks/useScreenshotOss.js +57 -48
- package/dist/hooks/useSetup.js +16 -13
- package/dist/index.d.ts +1 -0
- package/dist/index.js +102 -98
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** 获取华为云OBS浏览器直传凭证 GET /oss/huawei/get_post_signature_for_obs_upload */
|
|
2
|
+
export declare function getPostSignatureForObsUploadHuaweiOss(options?: Record<string, any> | File | any): Promise<Record<string, any>>;
|
|
3
|
+
/** 此处后端没有提供注释 GET /oss/get_post_signature_for_oss_upload */
|
|
4
|
+
export declare function getPostSignatureForOssUploadOss(options?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}): Promise<Record<string, any>>;
|
|
7
|
+
/** 此处后端没有提供注释 GET /oss/getFileUrl */
|
|
8
|
+
export declare function getFileUrlOss(params: NoticeAPI.getFileUrlOssParams, options?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): Promise<string>;
|
package/dist/api/oss.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { request as t } from "../utils/xhr.js";
|
|
2
|
+
async function o(e) {
|
|
3
|
+
const s = e && !(e instanceof File) ? e : {};
|
|
4
|
+
return t.get({
|
|
5
|
+
url: "/notice/oss/huawei/get_post_signature_for_obs_upload",
|
|
6
|
+
...s
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
async function n(e) {
|
|
10
|
+
return t.get({
|
|
11
|
+
url: "/notice/oss/get_post_signature_for_oss_upload",
|
|
12
|
+
...e ?? {}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
async function u(e, s) {
|
|
16
|
+
return t.get({
|
|
17
|
+
url: "/notice/oss/getFileUrl",
|
|
18
|
+
params: e,
|
|
19
|
+
...s ?? {}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
u as getFileUrlOss,
|
|
24
|
+
o as getPostSignatureForObsUploadHuaweiOss,
|
|
25
|
+
n as getPostSignatureForOssUploadOss
|
|
26
|
+
};
|
|
@@ -36,11 +36,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
36
36
|
readonly default: true;
|
|
37
37
|
};
|
|
38
38
|
uploadOssApi: {
|
|
39
|
-
readonly type: import('vue').PropType<(file
|
|
39
|
+
readonly type: import('vue').PropType<(file?: any) => Promise<any>>;
|
|
40
40
|
readonly default: undefined;
|
|
41
41
|
};
|
|
42
42
|
uploadOssViewApi: {
|
|
43
|
-
readonly type: import('vue').PropType<(key: string) => Promise<any
|
|
43
|
+
readonly type: import('vue').PropType<((key: string) => Promise<any>) | ((params: any) => Promise<any>)>;
|
|
44
44
|
readonly default: undefined;
|
|
45
45
|
};
|
|
46
46
|
uploadTip: {
|
|
@@ -91,6 +91,10 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
91
91
|
readonly type: import('vue').PropType<boolean>;
|
|
92
92
|
readonly default: true;
|
|
93
93
|
};
|
|
94
|
+
ossType: {
|
|
95
|
+
readonly type: import('vue').PropType<import('.').OssType>;
|
|
96
|
+
readonly default: undefined;
|
|
97
|
+
};
|
|
94
98
|
ossDir: {
|
|
95
99
|
readonly type: import('vue').PropType<string>;
|
|
96
100
|
readonly default: undefined;
|
|
@@ -206,7 +210,7 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
206
210
|
onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
|
|
207
211
|
onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
208
212
|
"onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
|
|
209
|
-
onAfterUpload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
213
|
+
onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
|
|
210
214
|
onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
211
215
|
onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
212
216
|
onTemplateDownload?: (() => any) | undefined;
|
|
@@ -221,7 +225,7 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
221
225
|
error: (err: unknown, file: import('element-plus').UploadRawFile) => any;
|
|
222
226
|
delete: (file: import('.').TtUploadFileItem) => any;
|
|
223
227
|
"update:modelValue": (value: import('.').TtUploadFileItem[]) => any;
|
|
224
|
-
afterUpload: (file: import('.').TtUploadFileItem) => any;
|
|
228
|
+
afterUpload: (file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any;
|
|
225
229
|
preview: (file: import('.').TtUploadFileItem) => any;
|
|
226
230
|
download: (file: import('.').TtUploadFileItem) => any;
|
|
227
231
|
templateDownload: () => any;
|
|
@@ -236,12 +240,14 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
236
240
|
name: string;
|
|
237
241
|
showPreview: boolean;
|
|
238
242
|
multiple: boolean;
|
|
243
|
+
method: string;
|
|
244
|
+
withCredentials: boolean;
|
|
239
245
|
action: string;
|
|
240
246
|
accept: string;
|
|
241
247
|
beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
242
248
|
modal: boolean;
|
|
243
|
-
uploadOssApi: (file
|
|
244
|
-
uploadOssViewApi: (key: string) => Promise<any
|
|
249
|
+
uploadOssApi: (file?: any) => Promise<any>;
|
|
250
|
+
uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
|
|
245
251
|
uploadTip: string;
|
|
246
252
|
maxSize: number;
|
|
247
253
|
showFileList: boolean;
|
|
@@ -253,14 +259,13 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
253
259
|
gridThreshold: number;
|
|
254
260
|
gridColumns: number;
|
|
255
261
|
showCount: boolean;
|
|
262
|
+
ossType: import('.').OssType;
|
|
256
263
|
ossDir: string;
|
|
257
264
|
beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
|
|
258
265
|
onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
259
266
|
onPreview: (uploadFile: import('element-plus').UploadFile) => void;
|
|
260
267
|
onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
261
268
|
onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
262
|
-
method: string;
|
|
263
|
-
withCredentials: boolean;
|
|
264
269
|
fileList: import('element-plus').UploadUserFile[];
|
|
265
270
|
autoUpload: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
266
271
|
listType: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
@@ -308,11 +313,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
308
313
|
readonly default: true;
|
|
309
314
|
};
|
|
310
315
|
uploadOssApi: {
|
|
311
|
-
readonly type: import('vue').PropType<(file
|
|
316
|
+
readonly type: import('vue').PropType<(file?: any) => Promise<any>>;
|
|
312
317
|
readonly default: undefined;
|
|
313
318
|
};
|
|
314
319
|
uploadOssViewApi: {
|
|
315
|
-
readonly type: import('vue').PropType<(key: string) => Promise<any
|
|
320
|
+
readonly type: import('vue').PropType<((key: string) => Promise<any>) | ((params: any) => Promise<any>)>;
|
|
316
321
|
readonly default: undefined;
|
|
317
322
|
};
|
|
318
323
|
uploadTip: {
|
|
@@ -363,6 +368,10 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
363
368
|
readonly type: import('vue').PropType<boolean>;
|
|
364
369
|
readonly default: true;
|
|
365
370
|
};
|
|
371
|
+
ossType: {
|
|
372
|
+
readonly type: import('vue').PropType<import('.').OssType>;
|
|
373
|
+
readonly default: undefined;
|
|
374
|
+
};
|
|
366
375
|
ossDir: {
|
|
367
376
|
readonly type: import('vue').PropType<string>;
|
|
368
377
|
readonly default: undefined;
|
|
@@ -478,7 +487,7 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
478
487
|
onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
|
|
479
488
|
onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
480
489
|
"onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
|
|
481
|
-
onAfterUpload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
490
|
+
onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
|
|
482
491
|
onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
483
492
|
onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
484
493
|
onTemplateDownload?: (() => any) | undefined;
|
|
@@ -498,12 +507,14 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
498
507
|
name: string;
|
|
499
508
|
showPreview: boolean;
|
|
500
509
|
multiple: boolean;
|
|
510
|
+
method: string;
|
|
511
|
+
withCredentials: boolean;
|
|
501
512
|
action: string;
|
|
502
513
|
accept: string;
|
|
503
514
|
beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
504
515
|
modal: boolean;
|
|
505
|
-
uploadOssApi: (file
|
|
506
|
-
uploadOssViewApi: (key: string) => Promise<any
|
|
516
|
+
uploadOssApi: (file?: any) => Promise<any>;
|
|
517
|
+
uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
|
|
507
518
|
uploadTip: string;
|
|
508
519
|
maxSize: number;
|
|
509
520
|
showFileList: boolean;
|
|
@@ -515,14 +526,13 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
515
526
|
gridThreshold: number;
|
|
516
527
|
gridColumns: number;
|
|
517
528
|
showCount: boolean;
|
|
529
|
+
ossType: import('.').OssType;
|
|
518
530
|
ossDir: string;
|
|
519
531
|
beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
|
|
520
532
|
onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
521
533
|
onPreview: (uploadFile: import('element-plus').UploadFile) => void;
|
|
522
534
|
onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
523
535
|
onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
524
|
-
method: string;
|
|
525
|
-
withCredentials: boolean;
|
|
526
536
|
fileList: import('element-plus').UploadUserFile[];
|
|
527
537
|
autoUpload: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
528
538
|
listType: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
@@ -567,11 +577,11 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
567
577
|
readonly default: true;
|
|
568
578
|
};
|
|
569
579
|
uploadOssApi: {
|
|
570
|
-
readonly type: import('vue').PropType<(file
|
|
580
|
+
readonly type: import('vue').PropType<(file?: any) => Promise<any>>;
|
|
571
581
|
readonly default: undefined;
|
|
572
582
|
};
|
|
573
583
|
uploadOssViewApi: {
|
|
574
|
-
readonly type: import('vue').PropType<(key: string) => Promise<any
|
|
584
|
+
readonly type: import('vue').PropType<((key: string) => Promise<any>) | ((params: any) => Promise<any>)>;
|
|
575
585
|
readonly default: undefined;
|
|
576
586
|
};
|
|
577
587
|
uploadTip: {
|
|
@@ -622,6 +632,10 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
622
632
|
readonly type: import('vue').PropType<boolean>;
|
|
623
633
|
readonly default: true;
|
|
624
634
|
};
|
|
635
|
+
ossType: {
|
|
636
|
+
readonly type: import('vue').PropType<import('.').OssType>;
|
|
637
|
+
readonly default: undefined;
|
|
638
|
+
};
|
|
625
639
|
ossDir: {
|
|
626
640
|
readonly type: import('vue').PropType<string>;
|
|
627
641
|
readonly default: undefined;
|
|
@@ -737,7 +751,7 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
737
751
|
onError?: ((err: unknown, file: import('element-plus').UploadRawFile) => any) | undefined;
|
|
738
752
|
onDelete?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
739
753
|
"onUpdate:modelValue"?: ((value: import('.').TtUploadFileItem[]) => any) | undefined;
|
|
740
|
-
onAfterUpload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
754
|
+
onAfterUpload?: ((file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
|
|
741
755
|
onPreview?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
742
756
|
onDownload?: ((file: import('.').TtUploadFileItem) => any) | undefined;
|
|
743
757
|
onTemplateDownload?: (() => any) | undefined;
|
|
@@ -752,7 +766,7 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
752
766
|
error: (err: unknown, file: import('element-plus').UploadRawFile) => any;
|
|
753
767
|
delete: (file: import('.').TtUploadFileItem) => any;
|
|
754
768
|
"update:modelValue": (value: import('.').TtUploadFileItem[]) => any;
|
|
755
|
-
afterUpload: (file: import('.').TtUploadFileItem) => any;
|
|
769
|
+
afterUpload: (file: import('.').TtUploadFileItem, ossKey?: string | undefined) => any;
|
|
756
770
|
preview: (file: import('.').TtUploadFileItem) => any;
|
|
757
771
|
download: (file: import('.').TtUploadFileItem) => any;
|
|
758
772
|
templateDownload: () => any;
|
|
@@ -767,12 +781,14 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
767
781
|
name: string;
|
|
768
782
|
showPreview: boolean;
|
|
769
783
|
multiple: boolean;
|
|
784
|
+
method: string;
|
|
785
|
+
withCredentials: boolean;
|
|
770
786
|
action: string;
|
|
771
787
|
accept: string;
|
|
772
788
|
beforeUpload: (rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
773
789
|
modal: boolean;
|
|
774
|
-
uploadOssApi: (file
|
|
775
|
-
uploadOssViewApi: (key: string) => Promise<any
|
|
790
|
+
uploadOssApi: (file?: any) => Promise<any>;
|
|
791
|
+
uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
|
|
776
792
|
uploadTip: string;
|
|
777
793
|
maxSize: number;
|
|
778
794
|
showFileList: boolean;
|
|
@@ -784,14 +800,13 @@ export declare const TtUpload: import('../../../../utils/src').SFCWithInstall<{
|
|
|
784
800
|
gridThreshold: number;
|
|
785
801
|
gridColumns: number;
|
|
786
802
|
showCount: boolean;
|
|
803
|
+
ossType: import('.').OssType;
|
|
787
804
|
ossDir: string;
|
|
788
805
|
beforeDownload: boolean | ((file: import('.').TtUploadFileItem) => PromiseLike<boolean>);
|
|
789
806
|
onRemove: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
790
807
|
onPreview: (uploadFile: import('element-plus').UploadFile) => void;
|
|
791
808
|
onSuccess: (response: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
792
809
|
onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
793
|
-
method: string;
|
|
794
|
-
withCredentials: boolean;
|
|
795
810
|
fileList: import('element-plus').UploadUserFile[];
|
|
796
811
|
autoUpload: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
797
812
|
listType: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
@@ -77,11 +77,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
77
77
|
readonly default: true;
|
|
78
78
|
};
|
|
79
79
|
uploadOssApi: {
|
|
80
|
-
readonly type: import('vue').PropType<(file
|
|
80
|
+
readonly type: import('vue').PropType<(file?: any) => Promise<any>>;
|
|
81
81
|
readonly default: undefined;
|
|
82
82
|
};
|
|
83
83
|
uploadOssViewApi: {
|
|
84
|
-
readonly type: import('vue').PropType<(key: string) => Promise<any
|
|
84
|
+
readonly type: import('vue').PropType<((key: string) => Promise<any>) | ((params: any) => Promise<any>)>;
|
|
85
85
|
readonly default: undefined;
|
|
86
86
|
};
|
|
87
87
|
uploadTip: {
|
|
@@ -132,6 +132,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
132
132
|
readonly type: import('vue').PropType<boolean>;
|
|
133
133
|
readonly default: true;
|
|
134
134
|
};
|
|
135
|
+
ossType: {
|
|
136
|
+
readonly type: import('vue').PropType<import('./typing').OssType>;
|
|
137
|
+
readonly default: undefined;
|
|
138
|
+
};
|
|
135
139
|
ossDir: {
|
|
136
140
|
readonly type: import('vue').PropType<string>;
|
|
137
141
|
readonly default: undefined;
|
|
@@ -252,7 +256,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
252
256
|
error: (err: unknown, file: UploadRawFile) => any;
|
|
253
257
|
delete: (file: TtUploadFileItem) => any;
|
|
254
258
|
"update:modelValue": (value: TtUploadFileItem[]) => any;
|
|
255
|
-
afterUpload: (file: TtUploadFileItem) => any;
|
|
259
|
+
afterUpload: (file: TtUploadFileItem, ossKey?: string | undefined) => any;
|
|
256
260
|
preview: (file: TtUploadFileItem) => any;
|
|
257
261
|
download: (file: TtUploadFileItem) => any;
|
|
258
262
|
templateDownload: () => any;
|
|
@@ -292,11 +296,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
292
296
|
readonly default: true;
|
|
293
297
|
};
|
|
294
298
|
uploadOssApi: {
|
|
295
|
-
readonly type: import('vue').PropType<(file
|
|
299
|
+
readonly type: import('vue').PropType<(file?: any) => Promise<any>>;
|
|
296
300
|
readonly default: undefined;
|
|
297
301
|
};
|
|
298
302
|
uploadOssViewApi: {
|
|
299
|
-
readonly type: import('vue').PropType<(key: string) => Promise<any
|
|
303
|
+
readonly type: import('vue').PropType<((key: string) => Promise<any>) | ((params: any) => Promise<any>)>;
|
|
300
304
|
readonly default: undefined;
|
|
301
305
|
};
|
|
302
306
|
uploadTip: {
|
|
@@ -347,6 +351,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
347
351
|
readonly type: import('vue').PropType<boolean>;
|
|
348
352
|
readonly default: true;
|
|
349
353
|
};
|
|
354
|
+
ossType: {
|
|
355
|
+
readonly type: import('vue').PropType<import('./typing').OssType>;
|
|
356
|
+
readonly default: undefined;
|
|
357
|
+
};
|
|
350
358
|
ossDir: {
|
|
351
359
|
readonly type: import('vue').PropType<string>;
|
|
352
360
|
readonly default: undefined;
|
|
@@ -462,7 +470,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
462
470
|
onError?: ((err: unknown, file: UploadRawFile) => any) | undefined;
|
|
463
471
|
onDelete?: ((file: TtUploadFileItem) => any) | undefined;
|
|
464
472
|
"onUpdate:modelValue"?: ((value: TtUploadFileItem[]) => any) | undefined;
|
|
465
|
-
onAfterUpload?: ((file: TtUploadFileItem) => any) | undefined;
|
|
473
|
+
onAfterUpload?: ((file: TtUploadFileItem, ossKey?: string | undefined) => any) | undefined;
|
|
466
474
|
onPreview?: ((file: TtUploadFileItem) => any) | undefined;
|
|
467
475
|
onDownload?: ((file: TtUploadFileItem) => any) | undefined;
|
|
468
476
|
onTemplateDownload?: (() => any) | undefined;
|
|
@@ -477,12 +485,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
477
485
|
name: string;
|
|
478
486
|
showPreview: boolean;
|
|
479
487
|
multiple: boolean;
|
|
488
|
+
method: string;
|
|
489
|
+
withCredentials: boolean;
|
|
480
490
|
action: string;
|
|
481
491
|
accept: string;
|
|
482
492
|
beforeUpload: (rawFile: UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
483
493
|
modal: boolean;
|
|
484
|
-
uploadOssApi: (file
|
|
485
|
-
uploadOssViewApi: (key: string) => Promise<any
|
|
494
|
+
uploadOssApi: (file?: any) => Promise<any>;
|
|
495
|
+
uploadOssViewApi: ((key: string) => Promise<any>) | ((params: any) => Promise<any>);
|
|
486
496
|
uploadTip: string;
|
|
487
497
|
maxSize: number;
|
|
488
498
|
showFileList: boolean;
|
|
@@ -494,14 +504,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
494
504
|
gridThreshold: number;
|
|
495
505
|
gridColumns: number;
|
|
496
506
|
showCount: boolean;
|
|
507
|
+
ossType: import('./typing').OssType;
|
|
497
508
|
ossDir: string;
|
|
498
509
|
beforeDownload: boolean | ((file: TtUploadFileItem) => PromiseLike<boolean>);
|
|
499
510
|
onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
500
511
|
onPreview: (uploadFile: UploadFile) => void;
|
|
501
512
|
onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
502
513
|
onExceed: (files: File[], uploadFiles: import('element-plus').UploadUserFile[]) => void;
|
|
503
|
-
method: string;
|
|
504
|
-
withCredentials: boolean;
|
|
505
514
|
fileList: import('element-plus').UploadUserFile[];
|
|
506
515
|
autoUpload: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
507
516
|
listType: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|