Browse Source

headerEdit调整

曹冬冬 5 years ago
parent
commit
36ef45e55a
1 changed files with 41 additions and 35 deletions
  1. 41 35
      src/components/HeaderEdit.vue

+ 41 - 35
src/components/HeaderEdit.vue

@@ -1,22 +1,24 @@
 <template>
 <template>
   <header class="header">
   <header class="header">
     <button class="reset-btn" @click="goback"><i class="el-icon-arrow-left"></i>返回作品</button>
     <button class="reset-btn" @click="goback"><i class="el-icon-arrow-left"></i>返回作品</button>
-    <div class="next_return">
+    <div class="tools">
-      <div class="return" title="撤销" @click="revocation" :style="`opacity:${operationList.length>1?'1':'.3'}`">
+      <div class="next_return">
-        <img class="retutn_icon" src="../assets/images/button_return.png" alt="">
+        <div class="return" title="撤销" @click="revocation" :style="`opacity:${operationList.length>1?'1':'.3'}`">
-        <span>撤销</span>
+          <img class="retutn_icon" src="../assets/images/button_return.png" alt="">
-      </div>
+          <span>撤销</span>
-      <div class="return" title="恢复" @click="recover" :style="`opacity:${nextList.length>0?'1':'.3'}`">
+        </div>
-        <img class="retutn_icon" src="../assets/images/button_next.png" alt="">
+        <div class="return" title="恢复" @click="recover" :style="`opacity:${nextList.length>0?'1':'.3'}`">
-        <span>恢复</span>
+          <img class="retutn_icon" src="../assets/images/button_next.png" alt="">
-      </div>
+          <span>恢复</span>
-      <div class="return" title="分享设置" @click="shareSetting">
+        </div>
-        <img class="retutn_icon" src="../assets/images/share_setting_edit_nor.png" alt="">
+        <div class="return" title="分享设置" @click="shareSetting">
-        <span>分享设置</span>
+          <img class="retutn_icon" src="../assets/images/share_setting_edit_nor.png" alt="">
-      </div>
+          <span>分享设置</span>
-      <div class="return" title="保存" @click="save">
+        </div>
-        <img class="retutn_icon" src="../assets/images/save_edit_nor.png" alt="">
+        <div class="return" title="保存" @click="save">
-        <span>保存</span>
+          <img class="retutn_icon" src="../assets/images/save_edit_nor.png" alt="">
+          <span>保存</span>
+        </div>
       </div>
       </div>
     </div>
     </div>
     <!-- <div class="next_return">
     <!-- <div class="next_return">
@@ -248,7 +250,9 @@ export default {
         that.$store.state.editor.editorTheme.canvasWidth = res["canvasWidth"];
         that.$store.state.editor.editorTheme.canvasWidth = res["canvasWidth"];
         that.$store.state.editor.editorPage.elements = res["pages"][0].elements;
         that.$store.state.editor.editorPage.elements = res["pages"][0].elements;
       });
       });
-    }
+    },
+    shareSetting() {},
+    save() {}
   }
   }
 };
 };
 </script>
 </script>
@@ -277,29 +281,31 @@ export default {
     padding-right: 15px;
     padding-right: 15px;
     flex-direction: row-reverse;
     flex-direction: row-reverse;
   }
   }
-  .next_return {
+  .tools {
     position: absolute;
     position: absolute;
-    top: 0px;
+    display: inline-block;
-    left: 38%;
+    margin-left: 33%;
-    display: flex;
-    flex-direction: row;
-    justify-content: center;
-    align-items: center;
     width: 300px;
     width: 300px;
     height: 60px;
     height: 60px;
-    z-index: 3;
+    .next_return {
-    .return {
       display: flex;
       display: flex;
-      flex-direction: column;
+      flex-direction: row;
       align-items: center;
       align-items: center;
-      padding-left: 16px;
+      height: 100%;
-      padding-right: 16px;
+      .return {
-      font-size: 16px;
+        display: flex;
-      color: rgba(100, 107, 129, 1);
+        flex-direction: column;
-      .retutn_icon {
+        align-items: center;
-        width: 24px;
+        justify-content: center;
-        height: 21px;
+        padding-left: 16px;
-        margin-bottom: 5px;
+        padding-right: 16px;
+        font-size: 16px;
+        color: rgba(100, 107, 129, 1);
+        .retutn_icon {
+          width: 24px;
+          height: 21px;
+          margin-bottom: 5px;
+        }
       }
       }
     }
     }
   }
   }