Skip to content

Commit b6c435d

Browse files
committed
增加收缩状态
1 parent 7e21394 commit b6c435d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/components/Layout.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,34 @@
4747
position: relative;
4848
overflow: hidden;
4949
display: -webkit-box;
50+
/* 收缩侧栏后的样式begin */
5051
&.hideSidebar {
5152
>.layout-sidebar-left {
5253
width: 50px;
5354
>.sidebar-container {
55+
>.el-menu--dark {
56+
>.el-submenu{
57+
>.el-submenu__title{
58+
>span{
59+
display: none;
60+
}
61+
>.el-submenu__icon-arrow{
62+
display: none;
63+
}
64+
}
65+
>.el-menu{
66+
display: none;
67+
}
68+
&:hover{
69+
>.el-menu{
70+
display: block;
71+
position: absolute;
72+
left: 50px;
73+
}
74+
}
75+
}
76+
overflow-x:visible;
77+
}
5478
>.layout-logo-lg{
5579
display: none;
5680
}
@@ -63,6 +87,7 @@
6387
}
6488
}
6589
}
90+
/* 收缩侧栏后的样式end */
6691
}
6792
.layout-sidebar-left{
6893
width: 200px;

src/components/Layout/Sidebar.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
overflow-x: hidden;
8282
@include scrollBar;
8383
}
84+
/** 对饿了么菜单框架配色进行调整bengin **/
8485
.el-menu {
8586
border-radius: 0px;
8687
}
@@ -104,4 +105,6 @@
104105
.el-menu--horizontal.el-menu--dark .el-submenu .el-menu-item.is-active, .el-menu-item.is-active{
105106
color:#fff;
106107
}
108+
/** 对饿了么菜单框架配色进行调整end **/
109+
107110
</style>

0 commit comments

Comments
 (0)