mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 20:20:00 +08:00
b34269a6b1
convert var to const fix bug fix bug fix for jshint fix import
23 lines
433 B
JavaScript
23 lines
433 B
JavaScript
import Tabs from 'rc-tabs';
|
|
import React from 'react';
|
|
const 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;
|
|
|
|
export default AntTabs;
|