fix: submenu animation lose #4325
parent
b7b433e98f
commit
16ee0dd2f1
|
@ -283,6 +283,10 @@ export default defineComponent({
|
||||||
{titleNode}
|
{titleNode}
|
||||||
</PopupTrigger>
|
</PopupTrigger>
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
// 包裹一层,保持结构一致,防止动画丢失
|
||||||
|
// https://github.com/vueComponent/ant-design-vue/issues/4325
|
||||||
|
titleNode = <PopupTrigger>{titleNode}</PopupTrigger>;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<MenuContextProvider props={{ mode: renderMode }}>
|
<MenuContextProvider props={{ mode: renderMode }}>
|
||||||
|
|
|
@ -120,14 +120,6 @@
|
||||||
background-color: @border-color-split;
|
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 &-item,
|
||||||
&-horizontal &-submenu {
|
&-horizontal &-submenu {
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
|
@ -671,5 +663,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@import './light';
|
||||||
@import './dark';
|
@import './dark';
|
||||||
@import './rtl';
|
@import './rtl';
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue