浏览代码

菜单样式小改

mw_666 3 年之前
父节点
当前提交
161f055e98
共有 2 个文件被更改,包括 2 次插入20 次删除
  1. 0 20
      src/App.vue
  2. 2 0
      src/assets/styles/theme/light/light-jsc.less

+ 0 - 20
src/App.vue

@@ -268,25 +268,6 @@ l16.229-16.229l16.229,16.229l42.867-42.867C115.034,45.228,109.133,42.189,102.956
 			</router-link>
           </el-menu-item-group>
         </el-sub-menu>
-        <!-- <el-sub-menu index="2" title="菜单2">
-          <template #title>
-            <el-icon>
-              <SvgIcon svgid="svg-matrix" />
-            </el-icon>
-          </template>
-          <el-menu-item-group>
-            <template #title><span>Group One</span></template>
-            <el-menu-item index="2-1">item one</el-menu-item>
-            <el-menu-item index="2-2">item two</el-menu-item>
-          </el-menu-item-group>
-          <el-menu-item-group title="Group Two">
-            <el-menu-item index="2-3">item three</el-menu-item>
-          </el-menu-item-group>
-          <el-sub-menu index="2-4">
-            <template #title><span>item four</span></template>
-            <el-menu-item index="2-4-1">item one</el-menu-item>
-          </el-sub-menu>
-        </el-sub-menu> -->
       </el-menu>
     </div>
     <div class="main-body">
@@ -399,7 +380,6 @@ export default {
       this.showSisView = res.fullPath === "/sisView";
     },
     "$store.state.menuData"(res) {
-		console.log(res)
 		this.menuData = res;
 	},
   },

+ 2 - 0
src/assets/styles/theme/light/light-jsc.less

@@ -375,6 +375,8 @@
 	
 	.el-popper.is-light.is-pure .el-menu--popup {
 	  padding:0;
+	  .el-menu-item-group__title{padding:0;}
+	  .el-menu-item{height: 46px;line-height: 46px;}
 	}
 	
 	.el-popper.is-light{