From 9801195a7783abdc7d8f1fe542476690ea5d765a Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 7 Dec 2022 20:37:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E6=A0=87=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/UploadFile/src/UploadFile.vue | 4 ++++ yudao-ui-admin-vue3/src/views/infra/fileList/index.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue b/yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue index e171f573d..3c0110d92 100644 --- a/yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue +++ b/yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue @@ -7,9 +7,11 @@ v-model="valueRef" v-model:file-list="fileList" :show-file-list="true" + :auto-upload="autoUpload" :action="updateUrl" :headers="uploadHeaders" :limit="props.limit" + :drag="drag" :before-upload="beforeUpload" :on-exceed="handleExceed" :on-success="handleFileSuccess" @@ -47,6 +49,8 @@ const props = defineProps({ fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg'] fileSize: propTypes.number.def(5), // 大小限制(MB) limit: propTypes.number.def(5), // 数量限制 + autoUpload: propTypes.bool.def(true), // 自动上传 + drag: propTypes.bool.def(false), // 拖拽上传 isShowTip: propTypes.bool.def(true) // 是否显示提示 }) // ========== 上传相关 ========== diff --git a/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue index 5b3baf297..5c6295845 100644 --- a/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue @@ -72,7 +72,7 @@