giime 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +64 -28
- package/es/api/materialApi/cross/getAdFileExist.d.ts +21 -0
- package/es/api/materialApi/cross/getAdFileExist.mjs +8 -0
- package/es/api/materialApi/cross/getAdFileExist.mjs.map +1 -0
- package/es/api/materialApi/cross/getOssAccessToken.d.ts +17 -0
- package/es/api/materialApi/cross/getOssAccessToken.mjs +8 -0
- package/es/api/materialApi/cross/getOssAccessToken.mjs.map +1 -0
- package/es/api/materialApi/cross/index.d.ts +2 -0
- package/es/api/materialApi/cross/index.mjs +3 -0
- package/es/api/materialApi/cross/index.mjs.map +1 -0
- package/es/api/materialApi/index.d.ts +1 -0
- package/es/api/materialApi/index.mjs +4 -0
- package/es/api/materialApi/index.mjs.map +1 -0
- package/es/api/materialApi/request.d.ts +2 -0
- package/es/api/materialApi/request.mjs +18 -0
- package/es/api/materialApi/request.mjs.map +1 -0
- package/es/api/utils/resetAxiosBaseUrl.mjs +0 -1
- package/es/api/utils/resetAxiosBaseUrl.mjs.map +1 -1
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/business/index.d.ts +1 -0
- package/es/components/src/business/index.mjs +2 -0
- package/es/components/src/business/index.mjs.map +1 -1
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.d.ts +306 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.mjs +9 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.mjs.map +1 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue2.mjs +184 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue2.mjs.map +1 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue3.mjs +4 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue3.mjs.map +1 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue4.mjs +4 -0
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue4.mjs.map +1 -0
- package/es/components/src/business/uploadMaterial/index.d.ts +308 -0
- package/es/components/src/business/uploadMaterial/index.mjs +9 -0
- package/es/components/src/business/uploadMaterial/index.mjs.map +1 -0
- package/es/components/src/business/uploadMaterial/uploadMaterial.d.ts +138 -0
- package/es/components/src/business/uploadMaterial/uploadMaterial.mjs +37 -0
- package/es/components/src/business/uploadMaterial/uploadMaterial.mjs.map +1 -0
- package/es/components/src/composite/dialogForm/DialogForm.vue.d.ts +1 -1
- package/es/components/src/composite/dialogForm/index.d.ts +4 -4
- package/es/components/src/composite/drawerForm/DrawerForm.vue.d.ts +1 -1
- package/es/components/src/composite/drawerForm/index.d.ts +4 -4
- package/es/components/src/composite/memoryForm/MemoryForm.vue.d.ts +1 -1
- package/es/components/src/composite/memoryForm/index.d.ts +4 -4
- package/es/components/src/plugins/message/index.mjs +1 -2
- package/es/components/src/plugins/message/index.mjs.map +1 -1
- package/es/components/src/plugins/message/method.mjs +1 -2
- package/es/components/src/plugins/message/method.mjs.map +1 -1
- package/es/giime/component.mjs +3 -1
- package/es/giime/component.mjs.map +1 -1
- package/es/giime/index.mjs +5 -1
- package/es/giime/index.mjs.map +1 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/base/useGlobalConfig/index.mjs +0 -1
- package/es/hooks/base/useGlobalConfig/index.mjs.map +1 -1
- package/es/hooks/store/useAliossStsToken/index.d.ts +16 -0
- package/es/hooks/store/useAliossStsToken/index.mjs +53 -0
- package/es/hooks/store/useAliossStsToken/index.mjs.map +1 -0
- package/es/hooks/store/useLangList/index.d.ts +1 -1
- package/es/index.css +64 -28
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +4 -1
- package/es/utils/index.mjs.map +1 -1
- package/es/utils/src/alioss.d.ts +14 -0
- package/es/utils/src/alioss.mjs +104 -0
- package/es/utils/src/alioss.mjs.map +1 -0
- package/es/utils/src/crypto/index.d.ts +2 -0
- package/es/utils/src/crypto/index.mjs +3 -0
- package/es/utils/src/crypto/index.mjs.map +1 -0
- package/es/utils/src/crypto/md5.d.ts +7 -0
- package/es/utils/src/crypto/md5.mjs +190 -0
- package/es/utils/src/crypto/md5.mjs.map +1 -0
- package/es/utils/src/crypto/sha1.d.ts +6 -0
- package/es/utils/src/crypto/sha1.mjs +193 -0
- package/es/utils/src/crypto/sha1.mjs.map +1 -0
- package/es/utils/src/is.d.ts +12 -0
- package/es/utils/src/is.mjs +9 -1
- package/es/utils/src/is.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/api/materialApi/cross/getAdFileExist.d.ts +21 -0
- package/lib/api/materialApi/cross/getAdFileExist.js +10 -0
- package/lib/api/materialApi/cross/getAdFileExist.js.map +1 -0
- package/lib/api/materialApi/cross/getOssAccessToken.d.ts +17 -0
- package/lib/api/materialApi/cross/getOssAccessToken.js +10 -0
- package/lib/api/materialApi/cross/getOssAccessToken.js.map +1 -0
- package/lib/api/materialApi/cross/index.d.ts +2 -0
- package/lib/api/materialApi/cross/index.js +10 -0
- package/lib/api/materialApi/cross/index.js.map +1 -0
- package/lib/api/materialApi/index.d.ts +1 -0
- package/lib/api/materialApi/index.js +11 -0
- package/lib/api/materialApi/index.js.map +1 -0
- package/lib/api/materialApi/request.d.ts +2 -0
- package/lib/api/materialApi/request.js +22 -0
- package/lib/api/materialApi/request.js.map +1 -0
- package/lib/api/utils/resetAxiosBaseUrl.js +0 -1
- package/lib/api/utils/resetAxiosBaseUrl.js.map +1 -1
- package/lib/components/index.js +60 -56
- package/lib/components/index.js.map +1 -1
- package/lib/components/src/business/index.d.ts +1 -0
- package/lib/components/src/business/index.js +4 -0
- package/lib/components/src/business/index.js.map +1 -1
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.d.ts +306 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.js +13 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.js.map +1 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue2.js +188 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue2.js.map +1 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue3.js +8 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue3.js.map +1 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue4.js +8 -0
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue4.js.map +1 -0
- package/lib/components/src/business/uploadMaterial/index.d.ts +308 -0
- package/lib/components/src/business/uploadMaterial/index.js +15 -0
- package/lib/components/src/business/uploadMaterial/index.js.map +1 -0
- package/lib/components/src/business/uploadMaterial/uploadMaterial.d.ts +138 -0
- package/lib/components/src/business/uploadMaterial/uploadMaterial.js +39 -0
- package/lib/components/src/business/uploadMaterial/uploadMaterial.js.map +1 -0
- package/lib/components/src/composite/dialogForm/DialogForm.vue.d.ts +1 -1
- package/lib/components/src/composite/dialogForm/index.d.ts +4 -4
- package/lib/components/src/composite/drawerForm/DrawerForm.vue.d.ts +1 -1
- package/lib/components/src/composite/drawerForm/index.d.ts +4 -4
- package/lib/components/src/composite/memoryForm/MemoryForm.vue.d.ts +1 -1
- package/lib/components/src/composite/memoryForm/index.d.ts +4 -4
- package/lib/components/src/plugins/message/index.js +1 -2
- package/lib/components/src/plugins/message/index.js.map +1 -1
- package/lib/components/src/plugins/message/method.js +1 -2
- package/lib/components/src/plugins/message/method.js.map +1 -1
- package/lib/giime/component.js +3 -1
- package/lib/giime/component.js.map +1 -1
- package/lib/giime/index.js +123 -102
- package/lib/giime/index.js.map +1 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/base/useGlobalConfig/index.js +0 -1
- package/lib/hooks/base/useGlobalConfig/index.js.map +1 -1
- package/lib/hooks/store/useAliossStsToken/index.d.ts +16 -0
- package/lib/hooks/store/useAliossStsToken/index.js +55 -0
- package/lib/hooks/store/useAliossStsToken/index.js.map +1 -0
- package/lib/hooks/store/useLangList/index.d.ts +1 -1
- package/lib/index.css +64 -28
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +18 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/src/alioss.d.ts +14 -0
- package/lib/utils/src/alioss.js +107 -0
- package/lib/utils/src/alioss.js.map +1 -0
- package/lib/utils/src/crypto/index.d.ts +2 -0
- package/lib/utils/src/crypto/index.js +21 -0
- package/lib/utils/src/crypto/index.js.map +1 -0
- package/lib/utils/src/crypto/md5.d.ts +7 -0
- package/lib/utils/src/crypto/md5.js +198 -0
- package/lib/utils/src/crypto/md5.js.map +1 -0
- package/lib/utils/src/crypto/sha1.d.ts +6 -0
- package/lib/utils/src/crypto/sha1.js +200 -0
- package/lib/utils/src/crypto/sha1.js.map +1 -0
- package/lib/utils/src/is.d.ts +12 -0
- package/lib/utils/src/is.js +10 -0
- package/lib/utils/src/is.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import UploadMaterial from './UploadMaterial.vue';
|
|
2
|
+
export declare const GmUploadMaterial: import("../../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
fileList: import("vue").PropType<import("element-plus").UploadUserFile[]>;
|
|
4
|
+
accept: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
autoUpload: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
multiple: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
seat: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
options: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
fileName: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
29
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
30
|
+
new (): any;
|
|
31
|
+
readonly prototype: any;
|
|
32
|
+
} | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
33
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
34
|
+
new (): any;
|
|
35
|
+
readonly prototype: any;
|
|
36
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
37
|
+
beforeRemove: {
|
|
38
|
+
readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils/typescript.js").Awaitable<boolean>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
onRemove: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
44
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
45
|
+
new (): any;
|
|
46
|
+
readonly prototype: any;
|
|
47
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
48
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
49
|
+
new (): any;
|
|
50
|
+
readonly prototype: any;
|
|
51
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
52
|
+
onChange: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
53
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
54
|
+
new (): any;
|
|
55
|
+
readonly prototype: any;
|
|
56
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
57
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
58
|
+
new (): any;
|
|
59
|
+
readonly prototype: any;
|
|
60
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
61
|
+
onPreview: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
62
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
63
|
+
new (): any;
|
|
64
|
+
readonly prototype: any;
|
|
65
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
66
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
67
|
+
new (): any;
|
|
68
|
+
readonly prototype: any;
|
|
69
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
70
|
+
onSuccess: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
71
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
72
|
+
new (): any;
|
|
73
|
+
readonly prototype: any;
|
|
74
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
75
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
76
|
+
new (): any;
|
|
77
|
+
readonly prototype: any;
|
|
78
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
79
|
+
onProgress: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
80
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
81
|
+
new (): any;
|
|
82
|
+
readonly prototype: any;
|
|
83
|
+
} | ((new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
84
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
85
|
+
new (): any;
|
|
86
|
+
readonly prototype: any;
|
|
87
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
88
|
+
onError: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
89
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
90
|
+
new (): any;
|
|
91
|
+
readonly prototype: any;
|
|
92
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
93
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
94
|
+
new (): any;
|
|
95
|
+
readonly prototype: any;
|
|
96
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
97
|
+
onExceed: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
98
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
99
|
+
new (): any;
|
|
100
|
+
readonly prototype: any;
|
|
101
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
102
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
103
|
+
new (): any;
|
|
104
|
+
readonly prototype: any;
|
|
105
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
106
|
+
crossorigin: {
|
|
107
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
};
|
|
112
|
+
action: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
113
|
+
headers: {
|
|
114
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
115
|
+
readonly required: false;
|
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
|
+
__epPropKey: true;
|
|
118
|
+
};
|
|
119
|
+
method: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
120
|
+
data: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)) | (() => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)))[], unknown, unknown, () => import("element-plus/es/utils/typescript.js").Mutable<{}>, boolean>;
|
|
121
|
+
name: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
122
|
+
drag: BooleanConstructor;
|
|
123
|
+
withCredentials: BooleanConstructor;
|
|
124
|
+
showFileList: import("element-plus/es/utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
125
|
+
listType: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
126
|
+
httpRequest: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
127
|
+
(): import("element-plus").UploadRequestHandler;
|
|
128
|
+
new (): any;
|
|
129
|
+
readonly prototype: any;
|
|
130
|
+
} | ((new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
131
|
+
(): import("element-plus").UploadRequestHandler;
|
|
132
|
+
new (): any;
|
|
133
|
+
readonly prototype: any;
|
|
134
|
+
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
135
|
+
disabled: BooleanConstructor;
|
|
136
|
+
limit: NumberConstructor;
|
|
137
|
+
}, {
|
|
138
|
+
onSubmit: () => void;
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
140
|
+
"update:fileList": (fileList: import("element-plus").UploadUserFile[]) => void;
|
|
141
|
+
handleRemove: (file: import("element-plus").UploadUserFile) => void;
|
|
142
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
143
|
+
fileList: import("vue").PropType<import("element-plus").UploadUserFile[]>;
|
|
144
|
+
accept: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
autoUpload: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
multiple: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
seat: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
options: {
|
|
161
|
+
type: ObjectConstructor;
|
|
162
|
+
default: () => void;
|
|
163
|
+
};
|
|
164
|
+
fileName: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
169
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
170
|
+
new (): any;
|
|
171
|
+
readonly prototype: any;
|
|
172
|
+
} | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
173
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
174
|
+
new (): any;
|
|
175
|
+
readonly prototype: any;
|
|
176
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
177
|
+
beforeRemove: {
|
|
178
|
+
readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils/typescript.js").Awaitable<boolean>>;
|
|
179
|
+
readonly required: false;
|
|
180
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
181
|
+
__epPropKey: true;
|
|
182
|
+
};
|
|
183
|
+
onRemove: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
184
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
185
|
+
new (): any;
|
|
186
|
+
readonly prototype: any;
|
|
187
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
188
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
189
|
+
new (): any;
|
|
190
|
+
readonly prototype: any;
|
|
191
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
192
|
+
onChange: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
193
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
194
|
+
new (): any;
|
|
195
|
+
readonly prototype: any;
|
|
196
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
197
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
198
|
+
new (): any;
|
|
199
|
+
readonly prototype: any;
|
|
200
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
201
|
+
onPreview: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
202
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
203
|
+
new (): any;
|
|
204
|
+
readonly prototype: any;
|
|
205
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
206
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
207
|
+
new (): any;
|
|
208
|
+
readonly prototype: any;
|
|
209
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
210
|
+
onSuccess: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
211
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
212
|
+
new (): any;
|
|
213
|
+
readonly prototype: any;
|
|
214
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
215
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
216
|
+
new (): any;
|
|
217
|
+
readonly prototype: any;
|
|
218
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
219
|
+
onProgress: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
220
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
221
|
+
new (): any;
|
|
222
|
+
readonly prototype: any;
|
|
223
|
+
} | ((new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
224
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
225
|
+
new (): any;
|
|
226
|
+
readonly prototype: any;
|
|
227
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
228
|
+
onError: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
229
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
230
|
+
new (): any;
|
|
231
|
+
readonly prototype: any;
|
|
232
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
233
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
234
|
+
new (): any;
|
|
235
|
+
readonly prototype: any;
|
|
236
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
237
|
+
onExceed: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
238
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
239
|
+
new (): any;
|
|
240
|
+
readonly prototype: any;
|
|
241
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
242
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
243
|
+
new (): any;
|
|
244
|
+
readonly prototype: any;
|
|
245
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
246
|
+
crossorigin: {
|
|
247
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
248
|
+
readonly required: false;
|
|
249
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
250
|
+
__epPropKey: true;
|
|
251
|
+
};
|
|
252
|
+
action: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
253
|
+
headers: {
|
|
254
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
255
|
+
readonly required: false;
|
|
256
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
257
|
+
__epPropKey: true;
|
|
258
|
+
};
|
|
259
|
+
method: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
260
|
+
data: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)) | (() => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)))[], unknown, unknown, () => import("element-plus/es/utils/typescript.js").Mutable<{}>, boolean>;
|
|
261
|
+
name: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
262
|
+
drag: BooleanConstructor;
|
|
263
|
+
withCredentials: BooleanConstructor;
|
|
264
|
+
showFileList: import("element-plus/es/utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
265
|
+
listType: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
266
|
+
httpRequest: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
267
|
+
(): import("element-plus").UploadRequestHandler;
|
|
268
|
+
new (): any;
|
|
269
|
+
readonly prototype: any;
|
|
270
|
+
} | ((new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
271
|
+
(): import("element-plus").UploadRequestHandler;
|
|
272
|
+
new (): any;
|
|
273
|
+
readonly prototype: any;
|
|
274
|
+
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
275
|
+
disabled: BooleanConstructor;
|
|
276
|
+
limit: NumberConstructor;
|
|
277
|
+
}>> & {
|
|
278
|
+
"onUpdate:fileList"?: ((fileList: import("element-plus").UploadUserFile[]) => any) | undefined;
|
|
279
|
+
onHandleRemove?: ((file: import("element-plus").UploadUserFile) => any) | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
name: string;
|
|
282
|
+
drag: boolean;
|
|
283
|
+
multiple: boolean;
|
|
284
|
+
disabled: boolean;
|
|
285
|
+
options: Record<string, any>;
|
|
286
|
+
data: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)) | (() => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<import("element-plus/es/utils/typescript.js").Mutable<Record<string, any>>>)))[], unknown, unknown>;
|
|
287
|
+
method: string;
|
|
288
|
+
withCredentials: boolean;
|
|
289
|
+
onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
290
|
+
onChange: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
291
|
+
beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
292
|
+
onRemove: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
293
|
+
onPreview: (uploadFile: import("element-plus").UploadFile) => void;
|
|
294
|
+
onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
295
|
+
onProgress: (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
296
|
+
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
297
|
+
action: string;
|
|
298
|
+
showFileList: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
299
|
+
accept: string;
|
|
300
|
+
autoUpload: boolean;
|
|
301
|
+
listType: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
302
|
+
httpRequest: import("element-plus").UploadRequestHandler;
|
|
303
|
+
fileName: string;
|
|
304
|
+
seat: string;
|
|
305
|
+
}, {}>> & Record<string, any>;
|
|
306
|
+
export type UploadMaterialInstance = InstanceType<typeof UploadMaterial>;
|
|
307
|
+
export * from './uploadMaterial';
|
|
308
|
+
export default GmUploadMaterial;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../../utils/index.js');
|
|
6
|
+
var UploadMaterial = require('./UploadMaterial.vue.js');
|
|
7
|
+
var uploadMaterial = require('./uploadMaterial.js');
|
|
8
|
+
var install = require('../../../../utils/src/vue/install.js');
|
|
9
|
+
|
|
10
|
+
const GmUploadMaterial = install.withInstall(UploadMaterial.default);
|
|
11
|
+
|
|
12
|
+
exports.uploadMaterialProps = uploadMaterial.uploadMaterialProps;
|
|
13
|
+
exports.GmUploadMaterial = GmUploadMaterial;
|
|
14
|
+
exports.default = GmUploadMaterial;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/src/business/uploadMaterial/index.ts"],"sourcesContent":["import { withInstall } from '@giime/utils';\r\nimport UploadMaterial from './UploadMaterial.vue';\r\n\r\nexport const GmUploadMaterial = withInstall(UploadMaterial);\r\nexport type UploadMaterialInstance = InstanceType<typeof UploadMaterial>;\r\nexport * from './uploadMaterial';\r\nexport default GmUploadMaterial;\r\n"],"names":["withInstall","UploadMaterial"],"mappings":";;;;;;;;;AAGa,MAAA,gBAAA,GAAmBA,oBAAYC,sBAAc;;;;;;"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { AliOssResponse } from '../../../../utils/src/alioss';
|
|
2
|
+
export type UploadMaterialResponse = AliOssResponse;
|
|
3
|
+
export declare const uploadMaterialProps: {
|
|
4
|
+
accept: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
autoUpload: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
multiple: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
seat: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
options: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
fileName: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
29
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
30
|
+
new (): any;
|
|
31
|
+
readonly prototype: any;
|
|
32
|
+
} | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>) | {
|
|
33
|
+
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
34
|
+
new (): any;
|
|
35
|
+
readonly prototype: any;
|
|
36
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
37
|
+
beforeRemove: {
|
|
38
|
+
readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
44
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
45
|
+
new (): any;
|
|
46
|
+
readonly prototype: any;
|
|
47
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
48
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
49
|
+
new (): any;
|
|
50
|
+
readonly prototype: any;
|
|
51
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
52
|
+
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
53
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
54
|
+
new (): any;
|
|
55
|
+
readonly prototype: any;
|
|
56
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
57
|
+
(): (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
58
|
+
new (): any;
|
|
59
|
+
readonly prototype: any;
|
|
60
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
61
|
+
onPreview: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
62
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
63
|
+
new (): any;
|
|
64
|
+
readonly prototype: any;
|
|
65
|
+
} | ((new (...args: any[]) => (uploadFile: import("element-plus").UploadFile) => void) | (() => (uploadFile: import("element-plus").UploadFile) => void) | {
|
|
66
|
+
(): (uploadFile: import("element-plus").UploadFile) => void;
|
|
67
|
+
new (): any;
|
|
68
|
+
readonly prototype: any;
|
|
69
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
70
|
+
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
71
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
72
|
+
new (): any;
|
|
73
|
+
readonly prototype: any;
|
|
74
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
75
|
+
(): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
76
|
+
new (): any;
|
|
77
|
+
readonly prototype: any;
|
|
78
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
79
|
+
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
80
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
81
|
+
new (): any;
|
|
82
|
+
readonly prototype: any;
|
|
83
|
+
} | ((new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
84
|
+
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
85
|
+
new (): any;
|
|
86
|
+
readonly prototype: any;
|
|
87
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
88
|
+
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
89
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
90
|
+
new (): any;
|
|
91
|
+
readonly prototype: any;
|
|
92
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
93
|
+
(): (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
94
|
+
new (): any;
|
|
95
|
+
readonly prototype: any;
|
|
96
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
97
|
+
onExceed: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
98
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
99
|
+
new (): any;
|
|
100
|
+
readonly prototype: any;
|
|
101
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
102
|
+
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
103
|
+
new (): any;
|
|
104
|
+
readonly prototype: any;
|
|
105
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
106
|
+
crossorigin: {
|
|
107
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
};
|
|
112
|
+
action: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
113
|
+
headers: {
|
|
114
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
115
|
+
readonly required: false;
|
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
|
+
__epPropKey: true;
|
|
118
|
+
};
|
|
119
|
+
method: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
120
|
+
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | ((new (...args: any[]) => import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>)) | (() => import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>)))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
121
|
+
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
122
|
+
drag: BooleanConstructor;
|
|
123
|
+
withCredentials: BooleanConstructor;
|
|
124
|
+
showFileList: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
125
|
+
fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
126
|
+
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
127
|
+
httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
128
|
+
(): import("element-plus").UploadRequestHandler;
|
|
129
|
+
new (): any;
|
|
130
|
+
readonly prototype: any;
|
|
131
|
+
} | ((new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
132
|
+
(): import("element-plus").UploadRequestHandler;
|
|
133
|
+
new (): any;
|
|
134
|
+
readonly prototype: any;
|
|
135
|
+
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
136
|
+
disabled: BooleanConstructor;
|
|
137
|
+
limit: NumberConstructor;
|
|
138
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../base/upload/index.js');
|
|
4
|
+
var upload = require('../../base/upload/upload.js');
|
|
5
|
+
|
|
6
|
+
const uploadMaterialProps = {
|
|
7
|
+
...upload.uploadProps,
|
|
8
|
+
accept: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "*"
|
|
11
|
+
},
|
|
12
|
+
autoUpload: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
multiple: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
seat: {
|
|
21
|
+
// 上传位置
|
|
22
|
+
type: String,
|
|
23
|
+
default: "default"
|
|
24
|
+
},
|
|
25
|
+
options: {
|
|
26
|
+
// alioss上传配置
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
fileName: {
|
|
32
|
+
// 上传文件名
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.uploadMaterialProps = uploadMaterialProps;
|
|
39
|
+
//# sourceMappingURL=uploadMaterial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadMaterial.js","sources":["../../../../../../../packages/components/src/business/uploadMaterial/uploadMaterial.ts"],"sourcesContent":["import { uploadProps } from '../../base/upload';\r\nimport type { AliOssResponse } from '@giime/utils/src/alioss';\r\n\r\nexport type UploadMaterialResponse = AliOssResponse;\r\n\r\nexport const uploadMaterialProps = {\r\n ...uploadProps,\r\n accept: {\r\n type: String,\r\n default: '*',\r\n },\r\n autoUpload: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n multiple: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n seat: {\r\n // 上传位置\r\n type: String,\r\n default: 'default',\r\n },\r\n options: {\r\n // alioss上传配置\r\n type: Object,\r\n default: () => {},\r\n },\r\n fileName: {\r\n // 上传文件名\r\n type: String,\r\n default: '',\r\n },\r\n};\r\n"],"names":["uploadProps"],"mappings":";;;;;AAKO,MAAM,mBAAsB,GAAA;AAAA,EACjC,GAAGA,kBAAA;AAAA,EACH,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA;AAAA,IAEJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA;AAAA,IAEP,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,MAAM;AAAA,KAAC;AAAA,GAClB;AAAA,EACA,QAAU,EAAA;AAAA;AAAA,IAER,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF;;;;"}
|
|
@@ -508,8 +508,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
508
508
|
onClosed?: (() => any) | undefined;
|
|
509
509
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
510
510
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
511
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
512
511
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
512
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
513
513
|
onVaildFail?: ((fields: any) => any) | undefined;
|
|
514
514
|
}, {
|
|
515
515
|
center: boolean;
|
|
@@ -93,8 +93,8 @@ export declare const GmDialogForm: import("../../../../utils").SFCWithInstall<{
|
|
|
93
93
|
onClosed?: (() => any) | undefined;
|
|
94
94
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
95
95
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
96
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
97
96
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
97
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
98
98
|
onVaildFail?: ((fields: any) => any) | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
dialogForm: import("vue").Ref<({
|
|
@@ -513,8 +513,8 @@ export declare const GmDialogForm: import("../../../../utils").SFCWithInstall<{
|
|
|
513
513
|
onClosed?: (() => any) | undefined;
|
|
514
514
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
515
515
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
516
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
517
516
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
517
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
518
518
|
onVaildFail?: ((fields: any) => any) | undefined;
|
|
519
519
|
}, {
|
|
520
520
|
center: boolean;
|
|
@@ -642,8 +642,8 @@ export declare const GmDialogForm: import("../../../../utils").SFCWithInstall<{
|
|
|
642
642
|
onClosed?: (() => any) | undefined;
|
|
643
643
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
644
644
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
645
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
646
645
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
646
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
647
647
|
onVaildFail?: ((fields: any) => any) | undefined;
|
|
648
648
|
}, {
|
|
649
649
|
dialogForm: import("vue").Ref<({
|
|
@@ -1081,8 +1081,8 @@ export declare const GmDialogForm: import("../../../../utils").SFCWithInstall<{
|
|
|
1081
1081
|
onClosed?: (() => any) | undefined;
|
|
1082
1082
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
1083
1083
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
1084
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
1085
1084
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
1085
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
1086
1086
|
onVaildFail?: ((fields: any) => any) | undefined;
|
|
1087
1087
|
}, {
|
|
1088
1088
|
dialogForm: import("vue").Ref<({
|
|
@@ -550,8 +550,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
550
550
|
onClosed?: (() => any) | undefined;
|
|
551
551
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
552
552
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
553
|
-
onReset?: ((formRef: any) => any) | undefined;
|
|
554
553
|
onSubmit?: ((formData: any) => any) | undefined;
|
|
554
|
+
onReset?: ((formRef: any) => any) | undefined;
|
|
555
555
|
onVaildFail?: ((fields?: any) => any) | undefined;
|
|
556
556
|
}, {
|
|
557
557
|
size: string;
|