Permalink
Browse files

Add custom local support in pagination component.

  • Loading branch information...
涌谷(刘旭恒) authored and afc163 committed Jun 21, 2018
1 parent 009ed08 commit babbbdd4e5c33ca050f8ee08969185c8d3269b4c
Showing with 3 additions and 2 deletions.
  1. +3 −2 components/pagination/Pagination.tsx
@@ -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

0 comments on commit babbbdd

Please sign in to comment.