fix: submenu animation lose #4325

pull/4334/head
tangjinzhou 2021-07-06 15:54:58 +08:00
parent b7b433e98f
commit 16ee0dd2f1
3 changed files with 17 additions and 8 deletions

View File

@ -283,6 +283,10 @@ export default defineComponent({
{titleNode}
</PopupTrigger>
);
} else {
//
// https://github.com/vueComponent/ant-design-vue/issues/4325
titleNode = <PopupTrigger>{titleNode}</PopupTrigger>;
}
return (
<MenuContextProvider props={{ mode: renderMode }}>

View File

@ -120,14 +120,6 @@
background-color: @border-color-split;
}
&-item:hover,
&-item-active,
&:not(&-inline) &-submenu-open,
&-submenu-active,
&-submenu-title:hover {
color: @menu-highlight-color;
}
&-horizontal &-item,
&-horizontal &-submenu {
margin-top: -1px;
@ -671,5 +663,6 @@
}
}
@import './light';
@import './dark';
@import './rtl';

View File

@ -0,0 +1,12 @@
.@{menu-prefix-cls} {
// light theme
&-light {
.@{menu-prefix-cls}-item:hover,
.@{menu-prefix-cls}-item-active,
.@{menu-prefix-cls}:not(.@{menu-prefix-cls}-inline) .@{menu-prefix-cls}-submenu-open,
.@{menu-prefix-cls}-submenu-active,
.@{menu-prefix-cls}-submenu-title:hover {
color: @menu-highlight-color;
}
}
}