@ -169,11 +169,10 @@ const Menu = {
onSelect: this.onSelect,
ref: 'innerMenu',
};
return (
<Provider store={this.store}>
<SubPopupMenu {...subPopupMenuProps} />
</Provider>
);
const subPopupMenu = <SubPopupMenu {...subPopupMenuProps} />;
return <Provider store={this.store}>{subPopupMenu}</Provider>;
},
export default Menu;
@ -46,7 +46,7 @@ module.exports = {
style: true,
],
['@ant-design-vue/babel-plugin-jsx', { transformOn: true }],
['@ant-design-vue/babel-plugin-jsx', { transformOn: true, usePatchFlag: true }],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-object-rest-spread',