giime 0.7.3 → 0.7.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 +45 -45
- package/es/components/index.mjs +3 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/business/index.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs +3 -3
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs.map +1 -1
- package/es/components/src/business/uploadPro/index.mjs +1 -1
- package/es/components/src/business/uploadPro/uploadPro.d.ts +1 -1
- package/es/components/src/business/uploadPro/uploadPro.mjs +2 -2
- package/es/components/src/business/uploadPro/uploadPro.mjs.map +1 -1
- package/es/components/src/composite/index.d.ts +1 -0
- package/es/components/src/composite/index.mjs +2 -0
- package/es/components/src/composite/index.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +105 -49
- package/es/components/src/composite/uploadFile/UploadFile.vue.mjs +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue2.mjs +33 -29
- package/es/components/src/composite/uploadFile/UploadFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/index.d.ts +215 -102
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +49 -27
- package/es/components/src/composite/uploadFile/uploadFile.mjs +3 -0
- package/es/components/src/composite/uploadFile/uploadFile.mjs.map +1 -1
- package/es/giime/index.mjs +4 -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/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/store/index.d.ts +1 -0
- package/es/hooks/store/index.mjs +1 -0
- package/es/hooks/store/index.mjs.map +1 -1
- package/es/hooks/store/useUploadTask/index.d.ts +28 -0
- package/es/hooks/store/useUploadTask/index.mjs +32 -0
- package/es/hooks/store/useUploadTask/index.mjs.map +1 -0
- package/es/index.css +45 -45
- package/lib/components/index.js +19 -15
- package/lib/components/index.js.map +1 -1
- package/lib/components/src/business/index.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js +2 -2
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js.map +1 -1
- package/lib/components/src/business/uploadPro/index.js +1 -1
- package/lib/components/src/business/uploadPro/uploadPro.d.ts +1 -1
- package/lib/components/src/business/uploadPro/uploadPro.js +2 -2
- package/lib/components/src/business/uploadPro/uploadPro.js.map +1 -1
- package/lib/components/src/composite/index.d.ts +1 -0
- package/lib/components/src/composite/index.js +4 -0
- package/lib/components/src/composite/index.js.map +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +105 -49
- package/lib/components/src/composite/uploadFile/UploadFile.vue.js +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.js +41 -37
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.js.map +1 -1
- package/lib/components/src/composite/uploadFile/index.d.ts +215 -102
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +49 -27
- package/lib/components/src/composite/uploadFile/uploadFile.js +3 -0
- package/lib/components/src/composite/uploadFile/uploadFile.js.map +1 -1
- package/lib/giime/index.js +81 -75
- 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/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/store/index.d.ts +1 -0
- package/lib/hooks/store/index.js +2 -0
- package/lib/hooks/store/index.js.map +1 -1
- package/lib/hooks/store/useUploadTask/index.d.ts +28 -0
- package/lib/hooks/store/useUploadTask/index.js +34 -0
- package/lib/hooks/store/useUploadTask/index.js.map +1 -0
- package/lib/index.css +45 -45
- package/package.json +1 -1
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.d.ts +0 -521
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.mjs +0 -6
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue.mjs.map +0 -1
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue2.mjs +0 -71
- package/es/components/src/business/uploadMaterial/UploadMaterial.vue2.mjs.map +0 -1
- package/es/components/src/business/uploadMaterial/index.d.ts +0 -1110
- package/es/components/src/business/uploadMaterial/index.mjs +0 -10
- package/es/components/src/business/uploadMaterial/index.mjs.map +0 -1
- package/es/components/src/business/uploadMaterial/uploadMaterial.d.ts +0 -230
- package/es/components/src/business/uploadMaterial/uploadMaterial.mjs +0 -23
- package/es/components/src/business/uploadMaterial/uploadMaterial.mjs.map +0 -1
- package/es/utils/src/alioss/aliossPutHook.d.ts +0 -156
- package/es/utils/src/alioss/aliossPutHook.mjs +0 -261
- package/es/utils/src/alioss/aliossPutHook.mjs.map +0 -1
- package/es/utils/src/alioss/aliossToken.d.ts +0 -23
- package/es/utils/src/alioss/aliossToken.mjs +0 -51
- package/es/utils/src/alioss/aliossToken.mjs.map +0 -1
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.d.ts +0 -521
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.js +0 -10
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue.js.map +0 -1
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue2.js +0 -75
- package/lib/components/src/business/uploadMaterial/UploadMaterial.vue2.js.map +0 -1
- package/lib/components/src/business/uploadMaterial/index.d.ts +0 -1110
- package/lib/components/src/business/uploadMaterial/index.js +0 -16
- package/lib/components/src/business/uploadMaterial/index.js.map +0 -1
- package/lib/components/src/business/uploadMaterial/uploadMaterial.d.ts +0 -230
- package/lib/components/src/business/uploadMaterial/uploadMaterial.js +0 -25
- package/lib/components/src/business/uploadMaterial/uploadMaterial.js.map +0 -1
- package/lib/utils/src/alioss/aliossPutHook.d.ts +0 -156
- package/lib/utils/src/alioss/aliossPutHook.js +0 -265
- package/lib/utils/src/alioss/aliossPutHook.js.map +0 -1
- package/lib/utils/src/alioss/aliossToken.d.ts +0 -23
- package/lib/utils/src/alioss/aliossToken.js +0 -55
- package/lib/utils/src/alioss/aliossToken.js.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { pushScopeId, popScopeId, createElementVNode, createTextVNode, defineComponent, mergeModels, useModel, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, mergeProps, createSlots, renderSlot, normalizeStyle, unref, createBlock, createCommentVNode } from 'vue';
|
|
2
2
|
import { ElMessageBox } from 'element-plus';
|
|
3
|
-
import {
|
|
4
|
-
import { fileValidType } from '../../../../utils/src/file.mjs';
|
|
3
|
+
import { useUploadTaskStore } from '../../../../hooks/store/useUploadTask/index.mjs';
|
|
5
4
|
import { usePasteFile } from '../../../../hooks/base/usePasteFile/index.mjs';
|
|
6
5
|
import { GmConfirmBox } from '../../plugins/confirmBox/index.mjs';
|
|
7
6
|
import { UploadFilled, View, Delete } from '@element-plus/icons-vue';
|
|
@@ -9,7 +8,7 @@ import { GmFileComponent } from '../fileComponent/index.mjs';
|
|
|
9
8
|
import { GmPreviewFile } from '../previewFile/index.mjs';
|
|
10
9
|
import { uploadFileProps } from './uploadFile.mjs';
|
|
11
10
|
|
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
11
|
+
const _withScopeId = (n) => (pushScopeId("data-v-12e65ac7"), n = n(), popScopeId(), n);
|
|
13
12
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
14
13
|
"div",
|
|
15
14
|
{ class: "el-upload__text gm-text-center !gm-text-xs gm-text-gray-500" },
|
|
@@ -34,39 +33,42 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
33
|
"checkoutFiles": { default: () => [] },
|
|
35
34
|
"checkoutFilesModifiers": {}
|
|
36
35
|
}),
|
|
37
|
-
emits: /* @__PURE__ */ mergeModels(["handleRemove"
|
|
36
|
+
emits: /* @__PURE__ */ mergeModels(["handleRemove"], ["update:fileList", "update:checkoutFiles"]),
|
|
38
37
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
38
|
const props = __props;
|
|
40
39
|
const emit = __emit;
|
|
41
|
-
const {
|
|
42
|
-
saveFileResult((res) => {
|
|
43
|
-
emit("handleSaveFileSuccess", res);
|
|
44
|
-
});
|
|
40
|
+
const { uploadFileTask } = useUploadTaskStore();
|
|
45
41
|
const fileList = useModel(__props, "fileList");
|
|
46
42
|
const checkoutFiles = useModel(__props, "checkoutFiles");
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
fileName: props.fileName,
|
|
58
|
-
folder: props.folder,
|
|
59
|
-
seat: props.seat,
|
|
60
|
-
partSize: props.partSize,
|
|
61
|
-
parallel: props.parallel,
|
|
62
|
-
options: props.options,
|
|
63
|
-
bucket: props.bucket,
|
|
64
|
-
saveStore: props.saveStore,
|
|
65
|
-
platform: props.platform,
|
|
66
|
-
cdn: props.cdn
|
|
43
|
+
const loadingUids = ref(/* @__PURE__ */ new Set());
|
|
44
|
+
const httpRequest = async (options) => {
|
|
45
|
+
loadingUids.value.add(options.file.uid);
|
|
46
|
+
const { file } = options;
|
|
47
|
+
const res = await uploadFileTask(file, {
|
|
48
|
+
domainCode: props.domainCode,
|
|
49
|
+
sceneCode: props.sceneCode,
|
|
50
|
+
accept: props.accept,
|
|
51
|
+
acl: props.acl,
|
|
52
|
+
elOptions: options
|
|
67
53
|
});
|
|
68
54
|
return res;
|
|
69
55
|
};
|
|
56
|
+
const checkAllUploadComplete = () => {
|
|
57
|
+
if (loadingUids.value.size === 0) {
|
|
58
|
+
props.onAllComplete?.();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const coverFileSuccess = (response, uploadFile, uploadFiles) => {
|
|
62
|
+
loadingUids.value.delete(uploadFile.uid);
|
|
63
|
+
uploadFile.url = response.url;
|
|
64
|
+
props.onSuccess?.(response, uploadFile, uploadFiles);
|
|
65
|
+
checkAllUploadComplete();
|
|
66
|
+
};
|
|
67
|
+
const coverFileError = (error, uploadFile, uploadFiles) => {
|
|
68
|
+
loadingUids.value.delete(uploadFile.uid);
|
|
69
|
+
props.onError?.(error, uploadFile, uploadFiles);
|
|
70
|
+
checkAllUploadComplete();
|
|
71
|
+
};
|
|
70
72
|
const beforeRemove = (file, files) => {
|
|
71
73
|
if (props.disabled) {
|
|
72
74
|
return false;
|
|
@@ -163,7 +165,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
165
|
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
164
166
|
"before-remove": beforeRemove,
|
|
165
167
|
action: "",
|
|
166
|
-
"http-request": httpRequest
|
|
168
|
+
"http-request": httpRequest,
|
|
169
|
+
"on-success": coverFileSuccess,
|
|
170
|
+
"on-error": coverFileError
|
|
167
171
|
}), createSlots({
|
|
168
172
|
default: withCtx(() => [
|
|
169
173
|
!_ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-file\"\n >\n <el-checkbox-group v-model=\"checkoutFiles\">\n <el-upload\n ref=\"uploadFileRef\"\n v-bind=\"props\"\n v-model:file-list=\"fileList\"\n :before-remove=\"beforeRemove\"\n action=\"\"\n :http-request=\"httpRequest\"\n >\n <slot v-if=\"!disabled\">\n <template v-if=\"listType === 'picture-card'\">\n <div\n class=\"gm-flex gm-flex-col gm-items-center gm-justify-center gm-rounded-md gm-border gm-border-dashed gm-p-1\"\n style=\"flex-direction: column\"\n :style=\"{ width: width + 'px', height: height + 'px' }\"\n >\n <el-icon :size=\"30\" color=\"#999\">\n <UploadFilled />\n </el-icon>\n <div class=\"el-upload__text gm-text-center !gm-text-xs gm-text-gray-500\">\n 将文件拖到此处,复制粘贴,或 <em class=\"gm-text-blue-700\">点击上传</em>\n </div>\n </div>\n </template>\n <template v-else>\n <el-button type=\"primary\" size=\"default\">点击上传</el-button>\n </template>\n </slot>\n <template v-if=\"showFileList && listType === 'picture-card'\" #file=\"{ file }\">\n <el-checkbox v-if=\"checkbox\" :value=\"file\" />\n <slot name=\"file\" :file=\"file\">\n <div class=\"gm-flex gm-items-center gm-justify-center gm-rounded-md\" :style=\"{ width: width + 'px', height: height + 'px' }\">\n <GmFileComponent :file=\"file\" :size=\"width - 40\" :url=\"url\" :controls=\"false\" :show-icon=\"true\" :field=\"field\" />\n </div>\n <div class=\"el-upload-list__item-actions\">\n <span class=\"el-upload-list__item-preview\" @click=\"handlePreview(file)\">\n <el-icon><View /></el-icon>\n </span>\n <span v-if=\"showDelete\" class=\"el-upload-list__item-delete\" @click=\"handleRemove(file, fileList)\">\n <el-icon><Delete /></el-icon>\n </span>\n </div>\n </slot>\n </template>\n </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useAliossHookStore } from '@giime/utils/src/alioss/aliossPutHook';\nimport { fileValidType } from '@giime/utils/src/file';\n// import { pasteFile } from '@giime/utils/src/pasteFile';\nimport { usePasteFile } from '@giime/hooks/base/usePasteFile';\nimport { GmConfirmBox } from '@giime/components/src/plugins/confirmBox';\nimport { Delete, UploadFilled, View } from '@element-plus/icons-vue';\nimport GmFileComponent from '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\nimport type { AliOssResponse } from '@giime/utils/src/alioss/aliossPutHook';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\", \"handleSaveFileSuccess\"]);\n\nconst { uploadFile, saveFileResult } = useAliossHookStore();\n\nsaveFileResult((res: AliOssResponse) => {\n emit('handleSaveFileSuccess', res);\n});\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/* 上传 */\nconst httpRequest = async (params: UploadRequestOptions) => {\n const { file } = params;\n\n // 验证文件类型\n if (props.accept && props.accept !== '*') {\n const isValidType = fileValidType(file, props.accept);\n if (!isValidType) {\n throw new Error(`文件类型不支持,请上传 ${props.accept} 格式的文件`);\n }\n }\n\n const res = await uploadFile({\n file,\n fileName: props.fileName,\n folder: props.folder,\n seat: props.seat,\n partSize: props.partSize,\n parallel: props.parallel,\n options: props.options,\n bucket: props.bucket,\n saveStore: props.saveStore,\n platform: props.platform,\n cdn: props.cdn,\n });\n return res;\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? props.beforeRemove(file, files) : true;\n};\n\n/* 删除文件 */\nconst removeFile = (file: UploadFile, uploadFiles: UploadFiles) => {\n const index = fileList.value.indexOf(file);\n if (index > -1) {\n fileList.value.splice(index, 1);\n emit('handleRemove', { file, index });\n return props.onRemove?.(file, uploadFiles);\n }\n};\nconst handleRemove = async (file: UploadFile, uploadFiles: UploadFiles) => {\n if (props.deleteTip) {\n await GmConfirmBox({ message: '确定删除该文件吗?' }, async () => {});\n }\n\n removeFile(file, uploadFiles);\n};\n\nconst uploadFileRef = ref<UploadInstance>();\nconst pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\nconst handlePreview = (file: UploadFile) => {\n fileIndex.value = fileList.value.indexOf(file);\n dialogVisible.value = true;\n};\n\n//** 复制粘贴 */\nconst { onSuccess, onError } = usePasteFile(pasteFileRef, { accept: props.accept, disabled: props.disabled });\nonSuccess((files: File[]) => {\n if (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-file-picture-card {\n :deep(.el-upload-list__item),\n :deep(.el-upload--picture-card) {\n width: auto;\n height: auto;\n }\n}\n</style>\n<style lang=\"scss\">\n.gm-upload-file {\n line-height: normal;\n .el-checkbox {\n position: absolute;\n left: 10px;\n top: 0;\n z-index: 9;\n }\n .el-upload-list--picture-card {\n gap: 10px;\n }\n .el-upload-list__item {\n margin: 0;\n }\n .el-upload-list__item-file-name {\n line-height: normal;\n }\n .el-upload-dragger {\n padding: 0;\n border: none;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .el-upload--picture-card {\n border: none;\n }\n}\n.gm-upload-file-disabled {\n .el-upload--picture-card {\n display: none;\n }\n .el-upload-list__item-status-label {\n display: none;\n }\n}\n</style>\n"],"names":["_useModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,EAAE,UAAA,EAAY,cAAe,EAAA,GAAI,kBAAmB,EAAA,CAAA;AAE1D,IAAA,cAAA,CAAe,CAAC,GAAwB,KAAA;AACtC,MAAA,IAAA,CAAK,yBAAyB,GAAG,CAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAGD,IAAM,MAAA,QAAA,GAAWA,QAA0B,CAAA,OAAA,EAAA,UAAiD,CAAA,CAAA;AAE5F,IAAM,MAAA,aAAA,GAAgBA,kBAAmB,eAAsC,CAAA,CAAA;AAG/E,IAAM,MAAA,WAAA,GAAc,OAAO,MAAiC,KAAA;AAC1D,MAAM,MAAA,EAAE,MAAS,GAAA,MAAA,CAAA;AAGjB,MAAA,IAAI,KAAM,CAAA,MAAA,IAAU,KAAM,CAAA,MAAA,KAAW,GAAK,EAAA;AACxC,QAAA,MAAM,WAAc,GAAA,aAAA,CAAc,IAAM,EAAA,KAAA,CAAM,MAAM,CAAA,CAAA;AACpD,QAAA,IAAI,CAAC,WAAa,EAAA;AAChB,UAAA,MAAM,IAAI,KAAA,CAAM,CAAe,mEAAA,EAAA,KAAA,CAAM,MAAM,CAAQ,+BAAA,CAAA,CAAA,CAAA;AAAA,SACrD;AAAA,OACF;AAEA,MAAM,MAAA,GAAA,GAAM,MAAM,UAAW,CAAA;AAAA,QAC3B,IAAA;AAAA,QACA,UAAU,KAAM,C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,SAAA,CAAU,CAAC,KAAkB,KAAA;AAC3B,MAAA,IAAI,MAAM,OAAQ,CAAA,KAAK,CAAK,IAAA,KAAA,CAAM,SAAS,CAAG,EAAA;AAC5C,QAAA,KAAA,CAAM,QAAQ,CAAQ,IAAA,KAAA;AACpB,UAAA,IAAI,gBAAgB,IAAM,EAAA;AACxB,YAAA,MAAM,OAAU,GAAA,IAAA,CAAA;AAChB,YAAA,WAAA,CAAY,OAAO,CAAA,CAAA;AAGnB,YAAA,IAAI,MAAM,UAAY,EAAA;AACpB,cAAO,MAAA,EAAA,CAAA;AAAA,aACT;AAAA,WACF;AAAA,SACD,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,CAAC,KAAiB,KAAA;AACxB,MAAQ,OAAA,CAAA,KAAA,CAAM,6BAAS,KAAK,CAAA,CAAA;AAC5B,MAAa,YAAA,CAAA,KAAA,CAAM,KAAM,CAAA,OAAA,EAAS,cAAM,EAAA;AAAA,QACtC,IAAM,EAAA,OAAA;AAAA,OACP,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,MAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UploadFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-file\"\n >\n <el-checkbox-group v-model=\"checkoutFiles\">\n <el-upload\n ref=\"uploadFileRef\"\n v-bind=\"props\"\n v-model:file-list=\"fileList\"\n :before-remove=\"beforeRemove\"\n action=\"\"\n :http-request=\"httpRequest\"\n :on-success=\"coverFileSuccess\"\n :on-error=\"coverFileError\"\n >\n <slot v-if=\"!disabled\">\n <template v-if=\"listType === 'picture-card'\">\n <div\n class=\"gm-flex gm-flex-col gm-items-center gm-justify-center gm-rounded-md gm-border gm-border-dashed gm-p-1\"\n style=\"flex-direction: column\"\n :style=\"{ width: width + 'px', height: height + 'px' }\"\n >\n <el-icon :size=\"30\" color=\"#999\">\n <UploadFilled />\n </el-icon>\n <div class=\"el-upload__text gm-text-center !gm-text-xs gm-text-gray-500\">\n 将文件拖到此处,复制粘贴,或 <em class=\"gm-text-blue-700\">点击上传</em>\n </div>\n </div>\n </template>\n <template v-else>\n <el-button type=\"primary\" size=\"default\">点击上传</el-button>\n </template>\n </slot>\n <template v-if=\"showFileList && listType === 'picture-card'\" #file=\"{ file }\">\n <el-checkbox v-if=\"checkbox\" :value=\"file\" />\n <slot name=\"file\" :file=\"file\">\n <div class=\"gm-flex gm-items-center gm-justify-center gm-rounded-md\" :style=\"{ width: width + 'px', height: height + 'px' }\">\n <GmFileComponent :file=\"file\" :size=\"width - 40\" :url=\"url\" :controls=\"false\" :show-icon=\"true\" :field=\"field\" />\n </div>\n <div class=\"el-upload-list__item-actions\">\n <span class=\"el-upload-list__item-preview\" @click=\"handlePreview(file)\">\n <el-icon><View /></el-icon>\n </span>\n <span v-if=\"showDelete\" class=\"el-upload-list__item-delete\" @click=\"handleRemove(file, fileList)\">\n <el-icon><Delete /></el-icon>\n </span>\n </div>\n </slot>\n </template>\n </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useUploadTaskStore } from '@giime/hooks/store/useUploadTask';\nimport { usePasteFile } from '@giime/hooks/base/usePasteFile';\nimport { GmConfirmBox } from '@giime/components/src/plugins/confirmBox';\nimport { Delete, UploadFilled, View } from '@element-plus/icons-vue';\nimport GmFileComponent from '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { GmUploadProUserFileResponse } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadProps, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\"]);\n\nconst { uploadFileTask } = useUploadTaskStore();\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\nconst loadingUids = ref<Set<number>>(new Set());\n\n/* 上传 */\nconst httpRequest = async (options: UploadRequestOptions) => {\n loadingUids.value.add(options.file.uid);\n const { file } = options;\n\n const res = await uploadFileTask(file, {\n domainCode: props.domainCode,\n sceneCode: props.sceneCode,\n accept: props.accept,\n acl: props.acl,\n elOptions: options,\n });\n\n return res;\n};\n\n/**判断是否全部上传完成 并触发事件 */\nconst checkAllUploadComplete = () => {\n if (loadingUids.value.size === 0) {\n // 全部文件上传完成\n props.onAllComplete?.();\n }\n};\n// 上传成功\nconst coverFileSuccess: UploadProps['onSuccess'] = (response: GmUploadProUserFileResponse, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n uploadFile.url = response.url;\n props.onSuccess?.(response, uploadFile, uploadFiles);\n // 判断是否全部上传完成\n checkAllUploadComplete();\n};\n// 上传失败\nconst coverFileError: UploadProps['onError'] = (error, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n props.onError?.(error, uploadFile, uploadFiles);\n // 判断是否全部上传完成\n checkAllUploadComplete();\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? props.beforeRemove(file, files) : true;\n};\n\n/* 删除文件 */\nconst removeFile = (file: UploadFile, uploadFiles: UploadFiles) => {\n const index = fileList.value.indexOf(file);\n if (index > -1) {\n fileList.value.splice(index, 1);\n emit('handleRemove', { file, index });\n return props.onRemove?.(file, uploadFiles);\n }\n};\nconst handleRemove = async (file: UploadFile, uploadFiles: UploadFiles) => {\n if (props.deleteTip) {\n await GmConfirmBox({ message: '确定删除该文件吗?' }, async () => {});\n }\n\n removeFile(file, uploadFiles);\n};\n\nconst uploadFileRef = ref<UploadInstance>();\nconst pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\nconst handlePreview = (file: UploadFile) => {\n fileIndex.value = fileList.value.indexOf(file);\n dialogVisible.value = true;\n};\n\n//** 复制粘贴 */\nconst { onSuccess, onError } = usePasteFile(pasteFileRef, { accept: props.accept, disabled: props.disabled });\nonSuccess((files: File[]) => {\n if (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-file-picture-card {\n :deep(.el-upload-list__item),\n :deep(.el-upload--picture-card) {\n width: auto;\n height: auto;\n }\n}\n</style>\n<style lang=\"scss\">\n.gm-upload-file {\n line-height: normal;\n .el-checkbox {\n position: absolute;\n left: 10px;\n top: 0;\n z-index: 9;\n }\n .el-upload-list--picture-card {\n gap: 10px;\n }\n .el-upload-list__item {\n margin: 0;\n }\n .el-upload-list__item-file-name {\n line-height: normal;\n }\n .el-upload-dragger {\n padding: 0;\n border: none;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .el-upload--picture-card {\n border: none;\n }\n}\n.gm-upload-file-disabled {\n .el-upload--picture-card {\n display: none;\n }\n .el-upload-list__item-status-label {\n display: none;\n }\n}\n</style>\n"],"names":["_useModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,EAAE,cAAe,EAAA,GAAI,kBAAmB,EAAA,CAAA;AAG9C,IAAM,MAAA,QAAA,GAAWA,QAA0B,CAAA,OAAA,EAAA,UAAiD,CAAA,CAAA;AAE5F,IAAM,MAAA,aAAA,GAAgBA,kBAAmB,eAAsC,CAAA,CAAA;AAE/E,IAAA,MAAM,WAAc,GAAA,GAAA,iBAAqB,IAAA,GAAA,EAAK,CAAA,CAAA;AAG9C,IAAM,MAAA,WAAA,GAAc,OAAO,OAAkC,KAAA;AAC3D,MAAA,WAAA,CAAY,KAAM,CAAA,GAAA,CAAI,OAAQ,CAAA,IAAA,CAAK,GAAG,CAAA,CAA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B,MAAQ,OAAA,CAAA,KAAA,CAAM,6BAAS,KAAK,CAAA,CAAA;AAC5B,MAAa,YAAA,CAAA,KAAA,CAAM,KAAM,CAAA,OAAA,EAAS,cAAM,EAAA;AAAA,QACtC,IAAM,EAAA,OAAA;AAAA,OACP,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,MAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -86,37 +86,31 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
86
86
|
type: NumberConstructor;
|
|
87
87
|
default: number;
|
|
88
88
|
};
|
|
89
|
-
|
|
90
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
91
|
-
default: () => {};
|
|
92
|
-
};
|
|
93
|
-
url: {
|
|
89
|
+
domainCode: {
|
|
94
90
|
type: StringConstructor;
|
|
95
|
-
default: string;
|
|
96
91
|
};
|
|
97
|
-
|
|
98
|
-
type:
|
|
99
|
-
default: number;
|
|
92
|
+
sceneCode: {
|
|
93
|
+
type: StringConstructor;
|
|
100
94
|
};
|
|
101
|
-
|
|
102
|
-
type:
|
|
95
|
+
acl: {
|
|
96
|
+
type: StringConstructor;
|
|
103
97
|
default: string;
|
|
104
98
|
};
|
|
105
|
-
|
|
99
|
+
showLoading: {
|
|
106
100
|
type: BooleanConstructor;
|
|
107
101
|
default: boolean;
|
|
108
102
|
};
|
|
109
|
-
|
|
110
|
-
type:
|
|
111
|
-
default:
|
|
103
|
+
disabledDeleteUids: {
|
|
104
|
+
type: import("vue").PropType<number[]>;
|
|
105
|
+
default: () => never[];
|
|
112
106
|
};
|
|
113
|
-
|
|
114
|
-
type:
|
|
115
|
-
default:
|
|
107
|
+
disabledCheckboxUids: {
|
|
108
|
+
type: import("vue").PropType<number[]>;
|
|
109
|
+
default: () => never[];
|
|
116
110
|
};
|
|
117
|
-
|
|
118
|
-
type:
|
|
119
|
-
default:
|
|
111
|
+
onAllComplete: {
|
|
112
|
+
type: import("vue").PropType<() => void>;
|
|
113
|
+
default: () => void;
|
|
120
114
|
};
|
|
121
115
|
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>) | {
|
|
122
116
|
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
@@ -225,6 +219,38 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
225
219
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
226
220
|
disabled: BooleanConstructor;
|
|
227
221
|
limit: NumberConstructor;
|
|
222
|
+
file: {
|
|
223
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
224
|
+
default: () => {};
|
|
225
|
+
};
|
|
226
|
+
url: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
size: {
|
|
231
|
+
type: NumberConstructor;
|
|
232
|
+
default: number;
|
|
233
|
+
};
|
|
234
|
+
field: {
|
|
235
|
+
type: import("vue").PropType<keyof import("element-plus").UploadFile>;
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
controls: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
controlslist: {
|
|
243
|
+
type: StringConstructor;
|
|
244
|
+
default: string;
|
|
245
|
+
};
|
|
246
|
+
oncontextmenu: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
showIcon: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
228
254
|
}>> & {
|
|
229
255
|
"onUpdate:fileList"?: ((fileList: import("element-plus").UploadFile[]) => any) | undefined;
|
|
230
256
|
onHandleRemove?: ((file: {
|
|
@@ -232,7 +258,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
232
258
|
index: number;
|
|
233
259
|
}) => any) | undefined;
|
|
234
260
|
"onUpdate:checkoutFiles"?: ((checkoutFiles: any[]) => any) | undefined;
|
|
235
|
-
onHandleSaveFileSuccess?: ((file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => any) | undefined;
|
|
236
261
|
}, {
|
|
237
262
|
submit: () => void;
|
|
238
263
|
abort: (file: import("element-plus").UploadFile) => void;
|
|
@@ -720,7 +745,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
720
745
|
file: import("element-plus").UploadFile;
|
|
721
746
|
index: number;
|
|
722
747
|
}) => void;
|
|
723
|
-
handleSaveFileSuccess: (file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => void;
|
|
724
748
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
725
749
|
fileList: {
|
|
726
750
|
required: true;
|
|
@@ -807,37 +831,31 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
807
831
|
type: NumberConstructor;
|
|
808
832
|
default: number;
|
|
809
833
|
};
|
|
810
|
-
|
|
811
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
812
|
-
default: () => {};
|
|
813
|
-
};
|
|
814
|
-
url: {
|
|
834
|
+
domainCode: {
|
|
815
835
|
type: StringConstructor;
|
|
816
|
-
default: string;
|
|
817
836
|
};
|
|
818
|
-
|
|
819
|
-
type:
|
|
820
|
-
default: number;
|
|
837
|
+
sceneCode: {
|
|
838
|
+
type: StringConstructor;
|
|
821
839
|
};
|
|
822
|
-
|
|
823
|
-
type:
|
|
840
|
+
acl: {
|
|
841
|
+
type: StringConstructor;
|
|
824
842
|
default: string;
|
|
825
843
|
};
|
|
826
|
-
|
|
844
|
+
showLoading: {
|
|
827
845
|
type: BooleanConstructor;
|
|
828
846
|
default: boolean;
|
|
829
847
|
};
|
|
830
|
-
|
|
831
|
-
type:
|
|
832
|
-
default:
|
|
848
|
+
disabledDeleteUids: {
|
|
849
|
+
type: import("vue").PropType<number[]>;
|
|
850
|
+
default: () => never[];
|
|
833
851
|
};
|
|
834
|
-
|
|
835
|
-
type:
|
|
836
|
-
default:
|
|
852
|
+
disabledCheckboxUids: {
|
|
853
|
+
type: import("vue").PropType<number[]>;
|
|
854
|
+
default: () => never[];
|
|
837
855
|
};
|
|
838
|
-
|
|
839
|
-
type:
|
|
840
|
-
default:
|
|
856
|
+
onAllComplete: {
|
|
857
|
+
type: import("vue").PropType<() => void>;
|
|
858
|
+
default: () => void;
|
|
841
859
|
};
|
|
842
860
|
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>) | {
|
|
843
861
|
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
@@ -946,6 +964,38 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
946
964
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
947
965
|
disabled: BooleanConstructor;
|
|
948
966
|
limit: NumberConstructor;
|
|
967
|
+
file: {
|
|
968
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
969
|
+
default: () => {};
|
|
970
|
+
};
|
|
971
|
+
url: {
|
|
972
|
+
type: StringConstructor;
|
|
973
|
+
default: string;
|
|
974
|
+
};
|
|
975
|
+
size: {
|
|
976
|
+
type: NumberConstructor;
|
|
977
|
+
default: number;
|
|
978
|
+
};
|
|
979
|
+
field: {
|
|
980
|
+
type: import("vue").PropType<keyof import("element-plus").UploadFile>;
|
|
981
|
+
default: string;
|
|
982
|
+
};
|
|
983
|
+
controls: {
|
|
984
|
+
type: BooleanConstructor;
|
|
985
|
+
default: boolean;
|
|
986
|
+
};
|
|
987
|
+
controlslist: {
|
|
988
|
+
type: StringConstructor;
|
|
989
|
+
default: string;
|
|
990
|
+
};
|
|
991
|
+
oncontextmenu: {
|
|
992
|
+
type: BooleanConstructor;
|
|
993
|
+
default: boolean;
|
|
994
|
+
};
|
|
995
|
+
showIcon: {
|
|
996
|
+
type: BooleanConstructor;
|
|
997
|
+
default: boolean;
|
|
998
|
+
};
|
|
949
999
|
}>> & {
|
|
950
1000
|
"onUpdate:fileList"?: ((fileList: import("element-plus").UploadFile[]) => any) | undefined;
|
|
951
1001
|
onHandleRemove?: ((file: {
|
|
@@ -953,7 +1003,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
953
1003
|
index: number;
|
|
954
1004
|
}) => any) | undefined;
|
|
955
1005
|
"onUpdate:checkoutFiles"?: ((checkoutFiles: any[]) => any) | undefined;
|
|
956
|
-
onHandleSaveFileSuccess?: ((file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => any) | undefined;
|
|
957
1006
|
}, {
|
|
958
1007
|
size: number;
|
|
959
1008
|
options: Record<string, any>;
|
|
@@ -985,20 +1034,25 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
985
1034
|
autoUpload: boolean;
|
|
986
1035
|
listType: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
987
1036
|
httpRequest: import("element-plus").UploadRequestHandler;
|
|
1037
|
+
acl: string;
|
|
1038
|
+
showLoading: boolean;
|
|
988
1039
|
showDelete: boolean;
|
|
1040
|
+
disabledDeleteUids: number[];
|
|
989
1041
|
deleteTip: boolean;
|
|
1042
|
+
disabledCheckboxUids: number[];
|
|
1043
|
+
onAllComplete: () => void;
|
|
990
1044
|
field: keyof import("element-plus").UploadFile;
|
|
991
1045
|
controlslist: string;
|
|
992
1046
|
oncontextmenu: boolean;
|
|
993
|
-
fileName: string;
|
|
994
|
-
platform: string;
|
|
995
|
-
parallel: number;
|
|
996
1047
|
folder: string;
|
|
997
1048
|
seat: string;
|
|
1049
|
+
parallel: number;
|
|
998
1050
|
partSize: number;
|
|
999
1051
|
bucket: string;
|
|
1000
|
-
|
|
1052
|
+
fileName: string;
|
|
1001
1053
|
saveStore: boolean;
|
|
1054
|
+
platform: string;
|
|
1055
|
+
cdn: string;
|
|
1002
1056
|
}, true, {}, {}, {
|
|
1003
1057
|
P: {};
|
|
1004
1058
|
B: {};
|
|
@@ -1092,37 +1146,31 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1092
1146
|
type: NumberConstructor;
|
|
1093
1147
|
default: number;
|
|
1094
1148
|
};
|
|
1095
|
-
|
|
1096
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
1097
|
-
default: () => {};
|
|
1098
|
-
};
|
|
1099
|
-
url: {
|
|
1149
|
+
domainCode: {
|
|
1100
1150
|
type: StringConstructor;
|
|
1101
|
-
default: string;
|
|
1102
1151
|
};
|
|
1103
|
-
|
|
1104
|
-
type:
|
|
1105
|
-
default: number;
|
|
1152
|
+
sceneCode: {
|
|
1153
|
+
type: StringConstructor;
|
|
1106
1154
|
};
|
|
1107
|
-
|
|
1108
|
-
type:
|
|
1155
|
+
acl: {
|
|
1156
|
+
type: StringConstructor;
|
|
1109
1157
|
default: string;
|
|
1110
1158
|
};
|
|
1111
|
-
|
|
1159
|
+
showLoading: {
|
|
1112
1160
|
type: BooleanConstructor;
|
|
1113
1161
|
default: boolean;
|
|
1114
1162
|
};
|
|
1115
|
-
|
|
1116
|
-
type:
|
|
1117
|
-
default:
|
|
1163
|
+
disabledDeleteUids: {
|
|
1164
|
+
type: import("vue").PropType<number[]>;
|
|
1165
|
+
default: () => never[];
|
|
1118
1166
|
};
|
|
1119
|
-
|
|
1120
|
-
type:
|
|
1121
|
-
default:
|
|
1167
|
+
disabledCheckboxUids: {
|
|
1168
|
+
type: import("vue").PropType<number[]>;
|
|
1169
|
+
default: () => never[];
|
|
1122
1170
|
};
|
|
1123
|
-
|
|
1124
|
-
type:
|
|
1125
|
-
default:
|
|
1171
|
+
onAllComplete: {
|
|
1172
|
+
type: import("vue").PropType<() => void>;
|
|
1173
|
+
default: () => void;
|
|
1126
1174
|
};
|
|
1127
1175
|
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>) | {
|
|
1128
1176
|
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
@@ -1231,6 +1279,38 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1231
1279
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
1232
1280
|
disabled: BooleanConstructor;
|
|
1233
1281
|
limit: NumberConstructor;
|
|
1282
|
+
file: {
|
|
1283
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
1284
|
+
default: () => {};
|
|
1285
|
+
};
|
|
1286
|
+
url: {
|
|
1287
|
+
type: StringConstructor;
|
|
1288
|
+
default: string;
|
|
1289
|
+
};
|
|
1290
|
+
size: {
|
|
1291
|
+
type: NumberConstructor;
|
|
1292
|
+
default: number;
|
|
1293
|
+
};
|
|
1294
|
+
field: {
|
|
1295
|
+
type: import("vue").PropType<keyof import("element-plus").UploadFile>;
|
|
1296
|
+
default: string;
|
|
1297
|
+
};
|
|
1298
|
+
controls: {
|
|
1299
|
+
type: BooleanConstructor;
|
|
1300
|
+
default: boolean;
|
|
1301
|
+
};
|
|
1302
|
+
controlslist: {
|
|
1303
|
+
type: StringConstructor;
|
|
1304
|
+
default: string;
|
|
1305
|
+
};
|
|
1306
|
+
oncontextmenu: {
|
|
1307
|
+
type: BooleanConstructor;
|
|
1308
|
+
default: boolean;
|
|
1309
|
+
};
|
|
1310
|
+
showIcon: {
|
|
1311
|
+
type: BooleanConstructor;
|
|
1312
|
+
default: boolean;
|
|
1313
|
+
};
|
|
1234
1314
|
}>> & {
|
|
1235
1315
|
"onUpdate:fileList"?: ((fileList: import("element-plus").UploadFile[]) => any) | undefined;
|
|
1236
1316
|
onHandleRemove?: ((file: {
|
|
@@ -1238,7 +1318,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1238
1318
|
index: number;
|
|
1239
1319
|
}) => any) | undefined;
|
|
1240
1320
|
"onUpdate:checkoutFiles"?: ((checkoutFiles: any[]) => any) | undefined;
|
|
1241
|
-
onHandleSaveFileSuccess?: ((file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => any) | undefined;
|
|
1242
1321
|
}, {
|
|
1243
1322
|
submit: () => void;
|
|
1244
1323
|
abort: (file: import("element-plus").UploadFile) => void;
|
|
@@ -1750,20 +1829,25 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1750
1829
|
autoUpload: boolean;
|
|
1751
1830
|
listType: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
1752
1831
|
httpRequest: import("element-plus").UploadRequestHandler;
|
|
1832
|
+
acl: string;
|
|
1833
|
+
showLoading: boolean;
|
|
1753
1834
|
showDelete: boolean;
|
|
1835
|
+
disabledDeleteUids: number[];
|
|
1754
1836
|
deleteTip: boolean;
|
|
1837
|
+
disabledCheckboxUids: number[];
|
|
1838
|
+
onAllComplete: () => void;
|
|
1755
1839
|
field: keyof import("element-plus").UploadFile;
|
|
1756
1840
|
controlslist: string;
|
|
1757
1841
|
oncontextmenu: boolean;
|
|
1758
|
-
fileName: string;
|
|
1759
|
-
platform: string;
|
|
1760
|
-
parallel: number;
|
|
1761
1842
|
folder: string;
|
|
1762
1843
|
seat: string;
|
|
1844
|
+
parallel: number;
|
|
1763
1845
|
partSize: number;
|
|
1764
1846
|
bucket: string;
|
|
1765
|
-
|
|
1847
|
+
fileName: string;
|
|
1766
1848
|
saveStore: boolean;
|
|
1849
|
+
platform: string;
|
|
1850
|
+
cdn: string;
|
|
1767
1851
|
}>;
|
|
1768
1852
|
__isFragment?: undefined;
|
|
1769
1853
|
__isTeleport?: undefined;
|
|
@@ -1854,37 +1938,31 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1854
1938
|
type: NumberConstructor;
|
|
1855
1939
|
default: number;
|
|
1856
1940
|
};
|
|
1857
|
-
|
|
1858
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
1859
|
-
default: () => {};
|
|
1860
|
-
};
|
|
1861
|
-
url: {
|
|
1941
|
+
domainCode: {
|
|
1862
1942
|
type: StringConstructor;
|
|
1863
|
-
default: string;
|
|
1864
1943
|
};
|
|
1865
|
-
|
|
1866
|
-
type:
|
|
1867
|
-
default: number;
|
|
1944
|
+
sceneCode: {
|
|
1945
|
+
type: StringConstructor;
|
|
1868
1946
|
};
|
|
1869
|
-
|
|
1870
|
-
type:
|
|
1947
|
+
acl: {
|
|
1948
|
+
type: StringConstructor;
|
|
1871
1949
|
default: string;
|
|
1872
1950
|
};
|
|
1873
|
-
|
|
1951
|
+
showLoading: {
|
|
1874
1952
|
type: BooleanConstructor;
|
|
1875
1953
|
default: boolean;
|
|
1876
1954
|
};
|
|
1877
|
-
|
|
1878
|
-
type:
|
|
1879
|
-
default:
|
|
1955
|
+
disabledDeleteUids: {
|
|
1956
|
+
type: import("vue").PropType<number[]>;
|
|
1957
|
+
default: () => never[];
|
|
1880
1958
|
};
|
|
1881
|
-
|
|
1882
|
-
type:
|
|
1883
|
-
default:
|
|
1959
|
+
disabledCheckboxUids: {
|
|
1960
|
+
type: import("vue").PropType<number[]>;
|
|
1961
|
+
default: () => never[];
|
|
1884
1962
|
};
|
|
1885
|
-
|
|
1886
|
-
type:
|
|
1887
|
-
default:
|
|
1963
|
+
onAllComplete: {
|
|
1964
|
+
type: import("vue").PropType<() => void>;
|
|
1965
|
+
default: () => void;
|
|
1888
1966
|
};
|
|
1889
1967
|
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>) | {
|
|
1890
1968
|
(): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
@@ -1993,6 +2071,38 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1993
2071
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
1994
2072
|
disabled: BooleanConstructor;
|
|
1995
2073
|
limit: NumberConstructor;
|
|
2074
|
+
file: {
|
|
2075
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
2076
|
+
default: () => {};
|
|
2077
|
+
};
|
|
2078
|
+
url: {
|
|
2079
|
+
type: StringConstructor;
|
|
2080
|
+
default: string;
|
|
2081
|
+
};
|
|
2082
|
+
size: {
|
|
2083
|
+
type: NumberConstructor;
|
|
2084
|
+
default: number;
|
|
2085
|
+
};
|
|
2086
|
+
field: {
|
|
2087
|
+
type: import("vue").PropType<keyof import("element-plus").UploadFile>;
|
|
2088
|
+
default: string;
|
|
2089
|
+
};
|
|
2090
|
+
controls: {
|
|
2091
|
+
type: BooleanConstructor;
|
|
2092
|
+
default: boolean;
|
|
2093
|
+
};
|
|
2094
|
+
controlslist: {
|
|
2095
|
+
type: StringConstructor;
|
|
2096
|
+
default: string;
|
|
2097
|
+
};
|
|
2098
|
+
oncontextmenu: {
|
|
2099
|
+
type: BooleanConstructor;
|
|
2100
|
+
default: boolean;
|
|
2101
|
+
};
|
|
2102
|
+
showIcon: {
|
|
2103
|
+
type: BooleanConstructor;
|
|
2104
|
+
default: boolean;
|
|
2105
|
+
};
|
|
1996
2106
|
}>> & {
|
|
1997
2107
|
"onUpdate:fileList"?: ((fileList: import("element-plus").UploadFile[]) => any) | undefined;
|
|
1998
2108
|
onHandleRemove?: ((file: {
|
|
@@ -2000,7 +2110,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
2000
2110
|
index: number;
|
|
2001
2111
|
}) => any) | undefined;
|
|
2002
2112
|
"onUpdate:checkoutFiles"?: ((checkoutFiles: any[]) => any) | undefined;
|
|
2003
|
-
onHandleSaveFileSuccess?: ((file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => any) | undefined;
|
|
2004
2113
|
}, {
|
|
2005
2114
|
submit: () => void;
|
|
2006
2115
|
abort: (file: import("element-plus").UploadFile) => void;
|
|
@@ -2488,7 +2597,6 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
2488
2597
|
file: import("element-plus").UploadFile;
|
|
2489
2598
|
index: number;
|
|
2490
2599
|
}) => void;
|
|
2491
|
-
handleSaveFileSuccess: (file: import("../../../../utils/src/alioss/aliossPutHook.js").AliOssResponse) => void;
|
|
2492
2600
|
}, string, {
|
|
2493
2601
|
size: number;
|
|
2494
2602
|
options: Record<string, any>;
|
|
@@ -2520,20 +2628,25 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
2520
2628
|
autoUpload: boolean;
|
|
2521
2629
|
listType: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
2522
2630
|
httpRequest: import("element-plus").UploadRequestHandler;
|
|
2631
|
+
acl: string;
|
|
2632
|
+
showLoading: boolean;
|
|
2523
2633
|
showDelete: boolean;
|
|
2634
|
+
disabledDeleteUids: number[];
|
|
2524
2635
|
deleteTip: boolean;
|
|
2636
|
+
disabledCheckboxUids: number[];
|
|
2637
|
+
onAllComplete: () => void;
|
|
2525
2638
|
field: keyof import("element-plus").UploadFile;
|
|
2526
2639
|
controlslist: string;
|
|
2527
2640
|
oncontextmenu: boolean;
|
|
2528
|
-
fileName: string;
|
|
2529
|
-
platform: string;
|
|
2530
|
-
parallel: number;
|
|
2531
2641
|
folder: string;
|
|
2532
2642
|
seat: string;
|
|
2643
|
+
parallel: number;
|
|
2533
2644
|
partSize: number;
|
|
2534
2645
|
bucket: string;
|
|
2535
|
-
|
|
2646
|
+
fileName: string;
|
|
2536
2647
|
saveStore: boolean;
|
|
2648
|
+
platform: string;
|
|
2649
|
+
cdn: string;
|
|
2537
2650
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
2538
2651
|
$slots: {
|
|
2539
2652
|
default?(_: {}): any;
|