diff --git a/components/menu/index.jsx b/components/menu/index.jsx index 7164250804..bcbb0d2cc4 100644 --- a/components/menu/index.jsx +++ b/components/menu/index.jsx @@ -105,6 +105,9 @@ const Menu = { this.setState({ sOpenKeys: this.inlineOpenKeys }) this.inlineOpenKeys = [] } + } else if (val) { + // 缩起时,openKeys置为空的动画会闪动,react可以通过是否传递openKeys避免闪动,vue不是很方便动态传递openKeys + this.switchingModeFromInline = true } }, restoreModeVerticalFromInline () {