Browse Source

style: use :deep() replace >>>

xiaoxian521 3 years ago
parent
commit
4aaffc53a8
2 changed files with 15 additions and 1 deletions
  1. 14 0
      src/style/sidebar.scss
  2. 1 1
      src/views/flow-chart/index.vue

+ 14 - 0
src/style/sidebar.scss

@@ -334,6 +334,20 @@
         background-color: $menuHover !important;
       }
     }
+
+    .el-menu-item,
+    .el-sub-menu {
+      i {
+        width: 20px;
+        text-align: center;
+        font-size: 16px;
+      }
+
+      i.fa {
+        margin-right: 5px;
+        font-size: 16px;
+      }
+    }
   }
 
   // horizontal菜单折叠

+ 1 - 1
src/views/flow-chart/index.vue

@@ -124,7 +124,7 @@ onMounted(() => {
   z-index: 3;
 }
 
-.logic-flow-view >>> .flow-dialog {
+:deep(.flow-dialog) {
   transform: none;
   left: 0;
   position: relative;