mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
19 lines
496 B
JavaScript
19 lines
496 B
JavaScript
import React from 'react';
|
|
import Pagination from 'rc-pagination';
|
|
import Select from 'rc-select';
|
|
|
|
const prefixCls = 'ant-pagination';
|
|
|
|
export default class AntPagination extends React.Component {
|
|
render() {
|
|
let className = this.props.className;
|
|
if (this.props.size === 'small') {
|
|
className += ' mini';
|
|
}
|
|
return <Pagination selectComponentClass={Select}
|
|
selectPrefixCls="ant-select"
|
|
prefixCls={prefixCls}
|
|
{...this.props} className={className} />;
|
|
}
|
|
}
|