You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/tabs/index.jsx

24 lines
500 B
JavaScript

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