mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
25 lines
454 B
JavaScript
25 lines
454 B
JavaScript
'use strict';
|
|
|
|
var Tabs = require('rc-tabs');
|
|
var React = require('react');
|
|
var prefixCls = 'ant-tabs';
|
|
|
|
class AntTabs extends React.Component {
|
|
render() {
|
|
var 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;
|
|
|
|
module.exports = AntTabs;
|