fix: 修复更新Naive UI版本后菜单高亮样式失效问题

This commit is contained in:
张传龙 2022-04-05 00:37:30 +08:00
parent a9997984d5
commit 9db7aa50a1

View File

@ -98,18 +98,15 @@ function handleMenuSelect(key, item) {
.n-menu { .n-menu {
margin-top: 10px; margin-top: 10px;
padding-left: 10px; padding-left: 10px;
.n-menu-item { .n-menu-item-content {
margin-top: 0;
position: relative;
&::before { &::before {
left: 0; left: 0;
right: 0; right: 0;
border-radius: 0; border-radius: 0;
background-color: unset !important; background-color: unset !important;
} }
&:hover, &:hover,
&.n-menu-item--selected { &.n-menu-item-content--selected {
border-radius: 0 !important; border-radius: 0 !important;
&::before { &::before {