Quellcode durchsuchen

fix:修改左侧弹

YaolongHan vor 4 Jahren
Ursprung
Commit
64eac2cda0
1 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen
  1. 7 4
      src/components/edit/left_toolbar.vue

+ 7 - 4
src/components/edit/left_toolbar.vue

@@ -76,6 +76,7 @@
           :wrap-style="{ position: 'absolute',}"
           @close="onClose"
           :getContainer="false"
+          :mask="false"
         >
           <div class="drawer-model-body" v-if="!isExtract">
             <div class="btn-list">
@@ -246,7 +247,8 @@ export default {
       data,
       columns,
       itemList: [], //图例数组
-      categoryId: ""
+      categoryId: "",
+      activeIndex: -1
     };
   },
   computed: {
@@ -312,7 +314,6 @@ export default {
       });
     },
     getexampleItem(item) {
-      this.visible = false;
       this.$emit("toolActionClick", item);
     },
     // 提取元素
@@ -347,9 +348,8 @@ export default {
   },
   mounted() {
     const ele = document.getElementById("drawer-model");
-    ele.style.width = document.body.offsetWidth - 70 + "px";
+    ele.style.width = "256px";
     this.getBus();
-    console.log(this.GraphCategoryIds);
   },
   created() {
     const href = window.location.href;
@@ -558,6 +558,9 @@ export default {
               margin: 0 auto;
             }
           }
+          .active-li{
+              background: #e1f2ff;
+          }
         }
       }
     }