From c861c59f290e82a12482b727c9c79211f200b430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Wed, 13 Mar 2024 17:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20cl-upload=20show-file-list?= =?UTF-8?q?=20=E5=BC=82=E5=B8=B8=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/upload/components/upload.vue | 2 +- src/plugins/upload/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/upload/components/upload.vue b/src/plugins/upload/components/upload.vue index 40e4a20..f1c2ff6 100644 --- a/src/plugins/upload/components/upload.vue +++ b/src/plugins/upload/components/upload.vue @@ -250,7 +250,7 @@ const list = ref([]); // 显示上传列表 const showList = computed(() => { if (props.type == "file") { - return !isEmpty(list.value); + return props.showFileList ? !isEmpty(list.value) : false; } else { return true; } diff --git a/src/plugins/upload/config.ts b/src/plugins/upload/config.ts index 748456a..4870f56 100644 --- a/src/plugins/upload/config.ts +++ b/src/plugins/upload/config.ts @@ -6,7 +6,7 @@ export default (): ModuleConfig => { description: "基于 el-upload 封装的文件上传组件", author: "COOL", version: "1.1.3", - updateTime: "2024-02-23", + updateTime: "2024-03-13", demo: [ { name: "基础用法",