From 30a1729ee64a237a547566f655fee1ce93827768 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期四, 09 九月 2021 10:41:55 +0800
Subject: [PATCH] 上传单图组件 和 上传多图组件 添加可拖拽上传

---
 src/components_simple/UploadMultipleImg.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/components_simple/UploadMultipleImg.vue b/src/components_simple/UploadMultipleImg.vue
index 46416ab..bbfe70e 100644
--- a/src/components_simple/UploadMultipleImg.vue
+++ b/src/components_simple/UploadMultipleImg.vue
@@ -2,6 +2,7 @@
   <div>
     <!-- 涓婁紶鍥剧墖缁勪欢(澶氬浘) -->
     <el-upload
+      id="UploadMultipleImg"
       ref="refUploadImg"
       :accept="accept"
       :auto-upload="false"
@@ -9,6 +10,7 @@
       :class="{disabled:uploadDisabled}"
       action="#"
       :limit="limit"
+      drag
       :file-list="uploadImgs"
       :on-change="addUploadImg"
       :on-remove="delUploadImg"
@@ -153,4 +155,8 @@
 .el-upload-list--picture-card .el-upload-list__item{
   margin-bottom: 0
 }
+#UploadMultipleImg .el-upload-dragger{
+  width: auto;
+  height: auto;
+}
 </style>

--
Gitblit v1.8.0