Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add custom local support in pagination component.
- Loading branch information
Showing
with
3 additions
and
2 deletions.
-
+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 |
|
|