فهرست منبع

菜单宽度样式修改

zhouna 6 سال پیش
والد
کامیت
7ea0afc558
2فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 2 2
      src/components/common/Menu.vue
  2. 4 2
      src/less/common.less

+ 2 - 2
src/components/common/Menu.vue

@@ -41,7 +41,7 @@
 </script>
 
 <style lang="less" scoped>
-  .el-menu-vertical-demo {
+  /*.el-menu-vertical-demo {
     min-width: 300px;
-  }
+  }*/
 </style>

+ 4 - 2
src/less/common.less

@@ -7,6 +7,7 @@
 /*公共变量*/
 @disableColor: #ccc;
 @aside-width: 20%;
+@aside-min-width:245px;
 @header-height: 60px;
 @gray: #c9c9c9;
 @baseBackage: #dee2ea;
@@ -37,13 +38,14 @@
 
 .el-aside {
   background: #fff;
+  min-width: @aside-min-width;
   width: @aside-width !important;
   min-height: 220px;
   border-right: 1px @gray solid;
   height: 100%;
   .logo {
-    width: 100%;
-    min-width: 300px;
+    /*width: 100%;
+    min-width: 300px;*/
     text-align: center;
     color: #fff;
     height: @header-height;