ant-design/components/pagination/index.jsx

19 lines
496 B
React
Raw Normal View History

import React from 'react';
import Pagination from 'rc-pagination';
import Select from 'rc-select';
2015-07-13 01:04:05 +08:00
const prefixCls = 'ant-pagination';
2015-07-13 01:04:05 +08:00
export default class AntPagination extends React.Component {
2015-07-13 01:04:05 +08:00
render() {
let className = this.props.className;
if (this.props.size === 'small') {
className += ' mini';
}
2015-07-15 17:32:32 +08:00
return <Pagination selectComponentClass={Select}
selectPrefixCls="ant-select"
prefixCls={prefixCls}
{...this.props} className={className} />;
2015-07-13 01:04:05 +08:00
}
}