mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Add custom local support in pagination component.
This commit is contained in:
parent
009ed08580
commit
babbbdd4e5
@ -41,8 +41,9 @@ export default class Pagination extends React.Component<PaginationProps, {}> {
|
||||
selectPrefixCls: 'ant-select',
|
||||
};
|
||||
|
||||
renderPagination = (locale: PaginationLocale) => {
|
||||
const { className, size, ...restProps } = this.props;
|
||||
renderPagination = (contextLocale: PaginationLocale) => {
|
||||
const { className, size, locale: customLocale, ...restProps } = this.props;
|
||||
const locale = { ...contextLocale, ...customLocale };
|
||||
const isSmall = size === 'small';
|
||||
return (
|
||||
<RcPagination
|
||||
|
Loading…
Reference in New Issue
Block a user