YaolongHan 4 年之前
父节点
当前提交
8086d15b45
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/components/editview/leftToolBar.vue

+ 6 - 6
src/components/editview/leftToolBar.vue

@@ -4,18 +4,18 @@
     <div class="btn-list">
       <ul>
         <li
-          v-for="(item,index) in leftData"
+          v-for="(item, index) in leftData"
           :key="index"
-          :class="{ 'btn-active': chiceStatus==index }"
+          :class="{ 'btn-active': chiceStatus == index }"
           @click="openTool(index)"
         >
           <img
             width="20px"
             height="20px"
-            :src="chiceStatus==index ? item.activeIcon : item.icon"
+            :src="chiceStatus == index ? item.activeIcon : item.icon"
             alt
           />
-          <span>{{item.name}}</span>
+          <span>{{ item.name }}</span>
         </li>
       </ul>
     </div>
@@ -30,6 +30,7 @@
       :show-close="true"
       :before-close="handleClose"
       :wrapperClosable="false"
+      custom-class="drawer-box"
     >
       <legendList :chiceStatus="chiceStatus"></legendList>
     </el-drawer>
@@ -163,8 +164,7 @@ li {
 }
 .el-drawer__wrapper {
   left: 64px;
-  top: 50px;
-  // background: rgba(255, 255, 255, 1);
+  top: 86px;
   // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
   width: 242px;
 }