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.

26 lines
643 B

import Tabs from 'rc-tabs';
import React from 'react';
const prefixCls = 'ant-tabs';
10 years ago
class AntTabs extends React.Component {
render() {
let className = (this.props.className || '');
if (this.props.size === 'small' || this.props.size === 'mini') {
className += ' ' + prefixCls + '-mini';
}
if (this.props.tabPosition === 'left' || this.props.tabPosition === 'right') {
className += ' ' + prefixCls + '-vertical';
}
return <Tabs {...this.props} className={className} />;
10 years ago
}
}
AntTabs.defaultProps = {
prefixCls: prefixCls,
size: 'default'
10 years ago
};
AntTabs.TabPane = Tabs.TabPane;
10 years ago
export default AntTabs;