chore: jsx use PatchFlags (#2498)

pull/2502/head
Amour1688 4 years ago committed by GitHub
parent e00637f76c
commit 7308d63e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save