mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 14:59:35 +08:00
24 lines
434 B
JavaScript
24 lines
434 B
JavaScript
import Tabs from 'rc-tabs';
|
|
import React from 'react';
|
|
const prefixCls = 'ant-tabs';
|
|
|
|
class AntTabs extends React.Component {
|
|
render() {
|
|
let sizeCls = '';
|
|
if (this.props.size === 'mini') {
|
|
sizeCls = prefixCls + '-mini';
|
|
}
|
|
return <Tabs {...this.props} className={sizeCls} />;
|
|
}
|
|
}
|
|
|
|
AntTabs.defaultProps = {
|
|
prefixCls: prefixCls,
|
|
size: 'normal'
|
|
};
|
|
|
|
AntTabs.TabPane = Tabs.TabPane;
|
|
|
|
export default AntTabs;
|
|
|