From 3845699a34ceb448b4d47a82bb928bf83203dcaf Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期三, 26 十月 2022 11:23:40 +0800 Subject: [PATCH] 上传处置图片上传过程展示 --- src/components/myUpload/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/myUpload/index.vue b/src/components/myUpload/index.vue index 6bcc4ff..4b7be53 100644 --- a/src/components/myUpload/index.vue +++ b/src/components/myUpload/index.vue @@ -11,7 +11,6 @@ :on-success="handleSuccess" :on-error="handleError" :list-type="listType" - :on-preview="handlePreview" :on-remove="handleRemove" :headers="getToken()"> <div class="upload-btn" :style="{'height':btnHeight,'width':btnWidth}"> @@ -32,7 +31,7 @@ // 澶氶�� multiple: false, // 闄愬埗 - limit: 50, + limit: 4, // 鎸夐挳楂樺害 btnHeight: '120px', // 鎸夐挳瀹藉害 @@ -90,7 +89,7 @@ }, // 绉婚櫎鏂囦欢 handleRemove(file, fileList){ - console.log(file,fileList) + this.$emit('delPictureUrl',{url:file.response.data.url1}); } }, props: { @@ -98,6 +97,10 @@ setPictureUrl:{ type:Function, default:()=>{} + }, + delPictureUrl:{ + type:Function, + default:()=>{} } } } -- Gitblit v1.8.0