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.

33 lines
799 B

import React from 'react';
import Pagination from 'rc-pagination';
import Select from 'rc-select';
9 years ago
import zhCN from './locale/zh_CN';
import enUS from './locale/en_US';
const prefixCls = 'ant-pagination';
9 years ago
class AntPagination extends React.Component {
render() {
let className = this.props.className;
if (this.props.size === 'small') {
className += ' mini';
}
10 years ago
return <Pagination selectComponentClass={Select}
9 years ago
selectPrefixCls="ant-select"
prefixCls={prefixCls}
{...this.props} className={className}/>;
}
}
9 years ago
AntPagination.defaultProps = {
locale: zhCN,
};
9 years ago
// TODO. remove after https://github.com/ant-design/ant-design/issues/487
9 years ago
AntPagination.locale = {
en_US: enUS,
zh_CN: zhCN,
};
export default AntPagination;