@@ -516,12 +516,9 @@ const genSubMenuArrowStyle = (token: MenuToken): CSSObject => {
516516 height : token . calc ( menuArrowSize ) . mul ( 0.15 ) . equal ( ) ,
517517 backgroundColor : 'currentcolor' ,
518518 borderRadius,
519- transition : [
520- `background-color ${ motionDurationSlow } ${ motionEaseInOut } ` ,
521- `transform ${ motionDurationSlow } ${ motionEaseInOut } ` ,
522- `top ${ motionDurationSlow } ${ motionEaseInOut } ` ,
523- `color ${ motionDurationSlow } ${ motionEaseInOut } ` ,
524- ] . join ( ',' ) ,
519+ transition : [ `background-color` , `transform` , `top` , `color` ]
520+ . map ( ( prop ) => `${ prop } ${ motionDurationSlow } ${ motionEaseInOut } ` )
521+ . join ( ',' ) ,
525522 content : '""' ,
526523 } ,
527524
@@ -619,10 +616,9 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
619616 } ,
620617
621618 [ `&-horizontal ${ componentCls } -submenu` ] : {
622- transition : [
623- `border-color ${ motionDurationSlow } ${ motionEaseInOut } ` ,
624- `background-color ${ motionDurationSlow } ${ motionEaseInOut } ` ,
625- ] . join ( ',' ) ,
619+ transition : [ `border-color` , `background-color` ]
620+ . map ( ( prop ) => `${ prop } ${ motionDurationSlow } ${ motionEaseInOut } ` )
621+ . join ( ',' ) ,
626622 } ,
627623
628624 [ `${ componentCls } -submenu, ${ componentCls } -submenu-inline` ] : {
@@ -635,10 +631,9 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
635631
636632 [ `${ componentCls } -submenu ${ componentCls } -sub` ] : {
637633 cursor : 'initial' ,
638- transition : [
639- `background-color ${ motionDurationSlow } ${ motionEaseInOut } ` ,
640- `padding ${ motionDurationSlow } ${ motionEaseInOut } ` ,
641- ] . join ( ',' ) ,
634+ transition : [ `background-color` , `padding` ]
635+ . map ( ( prop ) => `${ prop } ${ motionDurationSlow } ${ motionEaseInOut } ` )
636+ . join ( ',' ) ,
642637 } ,
643638
644639 [ `${ componentCls } -title-content` ] : {
0 commit comments