From 00acc379165a6fb61fdb80239ec2df3a4b7491d2 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 28 Feb 2025 12:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=96=B0=E5=A2=9Edisabled=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/FileUpload/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index 12ad4ea7..f6e3a7d4 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -13,6 +13,7 @@ :headers="headers" class="upload-file-uploader" ref="fileUpload" + v-if="!disabled" > 选取文件 @@ -32,7 +33,7 @@ {{ getFileName(file.name) }}
- 删除 + 删除
@@ -66,6 +67,11 @@ export default { isShowTip: { type: Boolean, default: true + }, + // 禁用组件(仅查看文件) + disabled: { + type: Boolean, + default: false } }, data() {