Skip to content

Commit 24e1e2f

Browse files
YunaiVgitee-org
authored andcommitted
!519 【优化】优化垂直菜单可用宽度
Merge pull request !519 from 半栈幼儿员/hotfix/menu
2 parents be2ca75 + 64168a9 commit 24e1e2f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/layout/components/Menu/src/Menu.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,16 @@ $prefix-cls: #{$namespace}-menu;
195195
}
196196
}
197197
198+
// 垂直菜单
199+
&__vertical {
200+
:deep(.#{$elNamespace}-menu--vertical) {
201+
&:not(.#{$elNamespace}-menu--collapse) .#{$elNamespace}-sub-menu__title,
202+
.#{$elNamespace}-menu-item {
203+
padding-right: 0;
204+
}
205+
}
206+
}
207+
198208
// 水平菜单
199209
&__horizontal {
200210
height: calc(var(--top-tool-height)) !important;

0 commit comments

Comments
 (0)