File tree 3 files changed +17
-8
lines changed
3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,10 @@ export default defineComponent({
283
283
{ titleNode }
284
284
</ PopupTrigger >
285
285
) ;
286
+ } else {
287
+ // 包裹一层,保持结构一致,防止动画丢失
288
+ // https://github.com/vueComponent/ant-design-vue/issues/4325
289
+ titleNode = < PopupTrigger > { titleNode } </ PopupTrigger > ;
286
290
}
287
291
return (
288
292
< MenuContextProvider props = { { mode : renderMode } } >
Original file line number Diff line number Diff line change 120
120
background-color : @border-color-split ;
121
121
}
122
122
123
- &-item :hover ,
124
- &-item-active ,
125
- & :not (&-inline ) &-submenu-open ,
126
- &-submenu-active ,
127
- &-submenu-title :hover {
128
- color : @menu-highlight-color ;
129
- }
130
-
131
123
&-horizontal &-item ,
132
124
&-horizontal &-submenu {
133
125
margin-top : -1px ;
671
663
}
672
664
}
673
665
666
+ @import ' ./light' ;
674
667
@import ' ./dark' ;
675
668
@import ' ./rtl' ;
Original file line number Diff line number Diff line change
1
+ .@{menu-prefix-cls} {
2
+ // light theme
3
+ &-light {
4
+ .@{menu-prefix-cls} -item :hover ,
5
+ .@{menu-prefix-cls} -item-active ,
6
+ .@{menu-prefix-cls} :not (.@{menu-prefix-cls} -inline ) .@{menu-prefix-cls} -submenu-open ,
7
+ .@{menu-prefix-cls} -submenu-active ,
8
+ .@{menu-prefix-cls} -submenu-title :hover {
9
+ color : @menu-highlight-color ;
10
+ }
11
+ }
12
+ }
You can’t perform that action at this time.
0 commit comments