2015-07-23 22:23:11 +08:00
|
|
|
import Tabs from 'rc-tabs';
|
|
|
|
import React from 'react';
|
|
|
|
const prefixCls = 'ant-tabs';
|
2015-06-12 12:01:02 +08:00
|
|
|
|
|
|
|
class AntTabs extends React.Component {
|
|
|
|
render() {
|
2015-06-19 17:26:24 +08:00
|
|
|
var sizeCls = '';
|
|
|
|
if (this.props.size === 'mini') {
|
|
|
|
sizeCls = prefixCls + '-mini';
|
|
|
|
}
|
|
|
|
return <Tabs {...this.props} className={sizeCls} />;
|
2015-06-12 12:01:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AntTabs.defaultProps = {
|
2015-06-19 17:26:24 +08:00
|
|
|
prefixCls: prefixCls,
|
|
|
|
size: 'normal'
|
2015-06-12 12:01:02 +08:00
|
|
|
};
|
|
|
|
|
2015-06-15 19:56:58 +08:00
|
|
|
AntTabs.TabPane = Tabs.TabPane;
|
2015-06-12 12:01:02 +08:00
|
|
|
|
2015-07-23 22:23:11 +08:00
|
|
|
export default AntTabs;
|
2015-08-03 16:04:24 +08:00
|
|
|
|