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

23 lines
439 B
React

var Tabs = require('rc-tabs');
10 years ago
var React = require('react');
var prefixCls = 'ant-tabs';
10 years ago
class AntTabs extends React.Component {
render() {
var sizeCls = '';
if (this.props.size === 'mini') {
sizeCls = prefixCls + '-mini';
}
return <Tabs {...this.props} className={sizeCls} />;
10 years ago
}
}
AntTabs.defaultProps = {
prefixCls: prefixCls,
size: 'normal'
10 years ago
};
AntTabs.TabPane = Tabs.TabPane;
10 years ago
module.exports = AntTabs;