Skip to content

Commit a0c08a5

Browse files
committed
Merge branch 'feat-vue3' of github.com:vueComponent/ant-design-vue into feat-vue3
2 parents 69f7573 + 7308d63 commit a0c08a5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

components/vc-menu/Menu.jsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,10 @@ const Menu = {
169169
onSelect: this.onSelect,
170170
ref: 'innerMenu',
171171
};
172-
return (
173-
<Provider store={this.store}>
174-
<SubPopupMenu {...subPopupMenuProps} />
175-
</Provider>
176-
);
172+
173+
const subPopupMenu = <SubPopupMenu {...subPopupMenuProps} />;
174+
return <Provider store={this.store}>{subPopupMenu}</Provider>;
177175
},
178176
};
177+
179178
export default Menu;

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
style: true,
4747
},
4848
],
49-
['@ant-design-vue/babel-plugin-jsx', { transformOn: true }],
49+
['@ant-design-vue/babel-plugin-jsx', { transformOn: true, usePatchFlag: true }],
5050
'@babel/plugin-proposal-optional-chaining',
5151
'@babel/plugin-transform-object-assign',
5252
'@babel/plugin-proposal-object-rest-spread',

0 commit comments

Comments
 (0)