Merge branch 'feat-vue3' of github.com:vueComponent/ant-design-vue into feat-vue3

pull/2502/head
tangjinzhou 2020-06-27 14:02:42 +08:00
commit a0c08a599a
2 changed files with 5 additions and 6 deletions

View File

@ -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;

View File

@ -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',