浏览代码

编辑替换按钮样式

zhangwf 5 年之前
父节点
当前提交
bd859c9f2e
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      src/components/EditPanel.vue

+ 7 - 6
src/components/EditPanel.vue

@@ -54,13 +54,13 @@
             <span style="font-size:14px;
             font-family:MicrosoftYaHei;
             color:rgba(100,107,129,1);
-            margin-bottom: 16px;
             line-height:19px;">
               {{element.imgSrc|currentImageName}}
             </span>
 
             <label style="display: block;
             cursor: pointer; width:108px; position: relative;
+            margin-bottom: 12px;
               height:28px;">
               <div style="width:108px;
               height:28px;
@@ -72,7 +72,8 @@
               justify-content: center;
               line-height:28px;">替换元素
               </div>
-              <input style="display: none;position: absolute;top: 0px;" type="file"  @change="fileChange" multiple="false">
+              <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange"
+                multiple="false">
             </label>
           </div>
         </div>
@@ -308,11 +309,10 @@
               <span style="font-size:14px;
               font-family:MicrosoftYaHei;
               color:rgba(100,107,129,1);
-              margin-bottom: 16px;
               line-height:19px;">
                 {{element.imgSrc|currentImageName}}
               </span>
-              <label style="display: block;
+              <label style="display: block;margin-bottom: 12px;
               cursor: pointer; width:108px;position: relative;
                 height:28px;">
                 <div style="width:108px;
@@ -325,7 +325,8 @@
                 justify-content: center;
                 line-height:28px;">替换元素
                 </div>
-                <input style="display: none;position: absolute;top: 0px;" type="file"  @change="fileChange" multiple="false">
+                <input style="display: none;position: absolute;top: 0px;" type="file" @change="fileChange"
+                  multiple="false">
               </label>
             </div>
           </div>
@@ -1050,7 +1051,7 @@
         }
       },
       fileChange(event) {
-        console.log("当前元素",this.element);
+        console.log("当前元素", this.element);
         this.upload(event)
       },
       async upload(event) {