From 7990eff7a4923cc95963cfac53cc803ecdc022b2 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 31 Mar 2021 12:01:18 +0800 Subject: [PATCH] =?UTF-8?q?JImageUpload=E7=BB=84=E4=BB=B6=E5=8D=95?= =?UTF-8?q?=E5=BC=A0=E6=97=A0=E6=B3=95=E9=A2=84=E8=A7=88=E5=92=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=20#2382?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/jeecg/JImageUpload.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue b/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue index 004fd44d..4665b412 100644 --- a/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue +++ b/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue @@ -11,13 +11,13 @@ :beforeUpload="beforeUpload" :disabled="disabled" :isMultiple="isMultiple" - :showUploadList="isMultiple" + @change="handleChange" @preview="handlePreview" - :class="!isMultiple?'imgupload':''"> -
- -
+ :class="[!isMultiple?'imgupload':'', (!isMultiple && picUrl)?'image-upload-single-over':'' ]"> +
+ +
{{ text }}
@@ -189,7 +189,7 @@ path = '' } let arr = []; - if(!this.isMultiple){ + if(!this.isMultiple && uploadFiles.length>0){ arr.push(uploadFiles[uploadFiles.length-1].response.message) }else{ for(let a=0;a