mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
fix: submenu active class not work when click
This commit is contained in:
parent
4187ea6149
commit
ffc002f094
@ -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__']) };
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user