From 056cf940822ba60875c5cb2cfdc05dc9df847131 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 06 May 2025 19:14:54 +0800
Subject: [PATCH] 图片上传组件新增disabled属性

---
 ruoyi-ui/src/components/FileUpload/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue
index ad28ca0..c709f6d 100644
--- a/ruoyi-ui/src/components/FileUpload/index.vue
+++ b/ruoyi-ui/src/components/FileUpload/index.vue
@@ -84,7 +84,7 @@
       type: Boolean,
       default: false
     },
-      // 拖动排序
+    // 拖动排序
     drag: {
       type: Boolean,
       default: true
@@ -102,7 +102,7 @@
     }
   },
   mounted() {
-    if (this.drag) {
+    if (this.drag && !this.disabled) {
       this.$nextTick(() => {
         const element = this.$refs.uploadFileList?.$el || this.$refs.uploadFileList
         Sortable.create(element, {

--
Gitblit v1.9.3