fix: submenu active class not work when click

This commit is contained in:
tangjinzhou 2020-05-24 17:07:55 +08:00
parent 4187ea6149
commit ffc002f094
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,6 @@ export default function connect(mapStateToProps) {
},
},
render() {
this.preProps = { ...this.$props };
const { $slots = {}, $scopedSlots, subscribed, store } = this;
const props = getOptionProps(this);
this.preProps = { ...omit(props, ['__propsSymbol__']) };

View File

@ -222,7 +222,8 @@ const Menu = {
const { layoutSiderContext, $slots } = this;
const { collapsedWidth } = layoutSiderContext;
const { getPopupContainer: getContextPopupContainer } = this.configProvider;
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = this.$props;
const props = getOptionProps(this);
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = props;
const getPrefixCls = this.configProvider.getPrefixCls;
const prefixCls = getPrefixCls('menu', customizePrefixCls);
const menuMode = this.getRealMenuMode();
@ -235,7 +236,7 @@ const Menu = {
const menuProps = {
props: {
...omit(this.$props, ['inlineCollapsed']),
...omit(props, ['inlineCollapsed']),
getPopupContainer: getPopupContainer || getContextPopupContainer,
openKeys: this.sOpenKeys,
mode: menuMode,