chore: jsx use PatchFlags (#2498)
parent
e00637f76c
commit
7308d63e6b
|
@ -169,11 +169,10 @@ const Menu = {
|
||||||
onSelect: this.onSelect,
|
onSelect: this.onSelect,
|
||||||
ref: 'innerMenu',
|
ref: 'innerMenu',
|
||||||
};
|
};
|
||||||
return (
|
|
||||||
<Provider store={this.store}>
|
const subPopupMenu = <SubPopupMenu {...subPopupMenuProps} />;
|
||||||
<SubPopupMenu {...subPopupMenuProps} />
|
return <Provider store={this.store}>{subPopupMenu}</Provider>;
|
||||||
</Provider>
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Menu;
|
export default Menu;
|
||||||
|
|
|
@ -46,7 +46,7 @@ module.exports = {
|
||||||
style: true,
|
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-proposal-optional-chaining',
|
||||||
'@babel/plugin-transform-object-assign',
|
'@babel/plugin-transform-object-assign',
|
||||||
'@babel/plugin-proposal-object-rest-spread',
|
'@babel/plugin-proposal-object-rest-spread',
|
||||||
|
|
Loading…
Reference in New Issue