fix: tabClick not work #2030

pull/2045/head
tangjinzhou 2020-04-08 22:58:20 +08:00
parent 602c879879
commit 4446dec9a6
1 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,10 @@ export default {
...getOptionProps(this),
prefixCls,
tabBarPosition: tabPosition,
renderTabBar: () => <TabBar {...tabBarProps} />,
// https://github.com/vueComponent/ant-design-vue/issues/2030
// tabBarProps renderTabBar on
// keybabel jsx mergeTabBar tabBarProps
renderTabBar: () => <TabBar key="tabBar" {...tabBarProps} />,
renderTabContent: () => (
<TabContent class={contentCls} animated={tabPaneAnimated} animatedWithMargin />
),