fix: renderTabBar not work #2157 (#2158)

close #2157
This commit is contained in:
PanStar 2020-04-27 13:52:11 +08:00 committed by GitHub
parent 5aad5681e5
commit fd28043172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,8 @@ const TabBar = {
} else {
RenderTabBar = <ScrollableInkTabBar {...renderProps} />;
}
return cloneElement(RenderTabBar);
// https://github.com/vueComponent/ant-design-vue/issues/2157
return cloneElement(RenderTabBar, renderProps);
},
};