You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
'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;
|