From 195d7d570a1c6485530c33a2252cb2ab65721ef2 Mon Sep 17 00:00:00 2001 From: sakuya <81883387@qq.com> Date: Fri, 21 May 2021 22:37:50 +0800 Subject: [PATCH] UP --- src/components/scUpload/index.vue | 4 ++-- src/components/scUpload/multiple.vue | 5 ++--- src/views/vab/upload.vue | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/scUpload/index.vue b/src/components/scUpload/index.vue index c5d8abdc..34f83291 100644 --- a/src/components/scUpload/index.vue +++ b/src/components/scUpload/index.vue @@ -12,7 +12,7 @@
-

{{title}}

+

{{title}}

@@ -30,7 +30,7 @@ action: { type: String, default: "#" }, accept: { type: String, default: ".jpg, .png, .jpeg, .gif" }, maxSize: { type: Number, default: 10 }, - title: { type: String, default: "上传" }, + title: { type: String, default: "" }, icon: { type: String, default: "el-icon-plus" }, onSuccess: { type: Function, default: () => { return true } } }, diff --git a/src/components/scUpload/multiple.vue b/src/components/scUpload/multiple.vue index b609ad2c..46d99fcb 100644 --- a/src/components/scUpload/multiple.vue +++ b/src/components/scUpload/multiple.vue @@ -25,7 +25,7 @@
-

{{title}}

+

{{title}}

@@ -40,7 +40,7 @@ action: { type: String, default: "#" }, accept: { type: String, default: ".jpg, .png, .jpeg, .gif" }, maxSize: { type: Number, default: 10 }, - title: { type: String, default: "上传" }, + title: { type: String, default: "" }, icon: { type: String, default: "el-icon-plus" } }, data(){ @@ -144,7 +144,6 @@ }, del(index){ this.fileList.splice(index, 1); - this.$refs.upload.uploadFiles.splice(index-this.fileList.length-1, 1); } } } diff --git a/src/views/vab/upload.vue b/src/views/vab/upload.vue index e15342b3..00ab5a27 100644 --- a/src/views/vab/upload.vue +++ b/src/views/vab/upload.vue @@ -3,8 +3,8 @@ - - + +

自定义插槽