Skip to content

Commit 1c60204

Browse files
YunaiVgitee-org
authored andcommitted
!491 [修复]菜单: 默认布局为top时,二级菜单鼠标悬停背景色为黑色,如何修改和一级菜单悬停色保持一致
Merge pull request !491 from hhhero/fix/menu-item-hover-bg
2 parents 1b036e8 + a6e1e5f commit 1c60204

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ export default defineComponent({
9090
backgroundColor="var(--left-menu-bg-color)"
9191
textColor="var(--left-menu-text-color)"
9292
activeTextColor="var(--left-menu-text-active-color)"
93+
popperClass={
94+
unref(menuMode) === 'vertical'
95+
? `${prefixCls}-popper--vertical`
96+
: `${prefixCls}-popper--horizontal`
97+
}
9398
onSelect={menuSelect}
9499
>
95100
{{

0 commit comments

Comments
 (0)