Bläddra i källkod

feat: 调整批量上传按钮类型风格

Damon 7 månader sedan
förälder
incheckning
1e7f88421c
2 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8 2
      src/components/Upload/index.vue
  2. 0 1
      src/views/music/list/index.vue

+ 8 - 2
src/components/Upload/index.vue

@@ -19,7 +19,13 @@
       :on-success="onSuccess"
       :on-error="onError"
     >
-      <el-button v-if="listType !== 'picture-card'" :type="type" ref="upload">
+      <!-- <el-button v-if="listType !== 'picture-card'" :type="type" ref="upload"> -->
+      <el-button
+        v-if="listType !== 'picture-card'"
+        type="primary"
+        size="mini"
+        ref="upload"
+      >
         <slot v-if="percentage <= 0 && !form.file">点击上传</slot>
         <span v-if="percentage > 0 && !form.file">{{ title }}</span>
         <span v-if="form.file">上传成功</span>
@@ -228,7 +234,7 @@ export default {
       if (file.code === 0) {
         this.form.file = file.data;
         this.$emit("upload", this.form);
-        this.title = "上传成功";
+        this.title = "批量上传";
         this.type = "success";
         if (this.form.platformId != null && this.form.platformId != "") {
           this.$message.success(`上传成功`);

+ 0 - 1
src/views/music/list/index.vue

@@ -71,7 +71,6 @@
         <!-- v-if="form.platformId == ''" -->
         <el-button
           type="primary"
-          icon="el-icon-plus"
           size="mini"
           @click="getDialog()"
           >批量上传</el-button