fix: submenu active class not work when click
parent
4187ea6149
commit
ffc002f094
|
@ -80,7 +80,6 @@ export default function connect(mapStateToProps) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
this.preProps = { ...this.$props };
|
|
||||||
const { $slots = {}, $scopedSlots, subscribed, store } = this;
|
const { $slots = {}, $scopedSlots, subscribed, store } = this;
|
||||||
const props = getOptionProps(this);
|
const props = getOptionProps(this);
|
||||||
this.preProps = { ...omit(props, ['__propsSymbol__']) };
|
this.preProps = { ...omit(props, ['__propsSymbol__']) };
|
||||||
|
|
|
@ -222,7 +222,8 @@ const Menu = {
|
||||||
const { layoutSiderContext, $slots } = this;
|
const { layoutSiderContext, $slots } = this;
|
||||||
const { collapsedWidth } = layoutSiderContext;
|
const { collapsedWidth } = layoutSiderContext;
|
||||||
const { getPopupContainer: getContextPopupContainer } = this.configProvider;
|
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 getPrefixCls = this.configProvider.getPrefixCls;
|
||||||
const prefixCls = getPrefixCls('menu', customizePrefixCls);
|
const prefixCls = getPrefixCls('menu', customizePrefixCls);
|
||||||
const menuMode = this.getRealMenuMode();
|
const menuMode = this.getRealMenuMode();
|
||||||
|
@ -235,7 +236,7 @@ const Menu = {
|
||||||
|
|
||||||
const menuProps = {
|
const menuProps = {
|
||||||
props: {
|
props: {
|
||||||
...omit(this.$props, ['inlineCollapsed']),
|
...omit(props, ['inlineCollapsed']),
|
||||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||||
openKeys: this.sOpenKeys,
|
openKeys: this.sOpenKeys,
|
||||||
mode: menuMode,
|
mode: menuMode,
|
||||||
|
|
Loading…
Reference in New Issue