diff --git a/components/pagination/Pagination.tsx b/components/pagination/Pagination.tsx index 6aecaea3fe..98a782cb94 100644 --- a/components/pagination/Pagination.tsx +++ b/components/pagination/Pagination.tsx @@ -5,6 +5,7 @@ import classNames from 'classnames'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; import Select from '../select'; import MiniSelect from './MiniSelect'; +import Icon from '../icon'; export interface PaginationProps { total?: number; @@ -42,13 +43,44 @@ export default class Pagination extends React.Component { selectPrefixCls: 'ant-select', }; + getIconsProps = () => { + const { prefixCls } = this.props; + const prevIcon = ( + + + + ); + const nextIcon = ( + + + + ); + const jumpPrevIcon = ( + + + + ); + const jumpNextIcon = ( + + + + ); + return { + prevIcon, + nextIcon, + jumpPrevIcon, + jumpNextIcon, + }; + } + renderPagination = (contextLocale: PaginationLocale) => { - const { className, size, locale: customLocale, ...restProps } = this.props; + const { className, size, locale: customLocale, ...restProps } = this.props; const locale = { ...contextLocale, ...customLocale }; const isSmall = size === 'small'; return (