Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add custom local support in pagination component.
  • Loading branch information
涌谷(刘旭恒) authored and afc163 committed Jun 27, 2018
1 parent 009ed08 commit babbbdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/pagination/Pagination.tsx
Expand Up @@ -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
Expand Down

0 comments on commit babbbdd

Please sign in to comment.