mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
improve tabBarExtraContent render
This commit is contained in:
parent
0fb0b465f6
commit
05299036b4
@ -58,14 +58,16 @@ class AntTabs extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
tabBarExtraContent = tabBarExtraContent ? (
|
||||
<div className={`${prefixCls}-extra-content`}>
|
||||
{tabBarExtraContent}
|
||||
</div>
|
||||
) : null;
|
||||
|
||||
return (
|
||||
<Tabs {...this.props}
|
||||
className={className}
|
||||
tabBarExtraContent={
|
||||
<div className={`${prefixCls}-extra-content`}>
|
||||
{tabBarExtraContent}
|
||||
</div>
|
||||
}
|
||||
tabBarExtraContent={tabBarExtraContent}
|
||||
onChange={this.handleChange}
|
||||
animation={animation}>
|
||||
{children}
|
||||
|
Loading…
Reference in New Issue
Block a user