1 | import * as PropTypes from 'prop-types';
|
2 | import * as React from 'react';
|
3 | import { PaginationPropsType, PaginationState } from './PropsType';
|
4 | export interface PaginationProps extends PaginationPropsType {
|
5 | style?: React.CSSProperties;
|
6 | prefixCls?: string;
|
7 | className?: string;
|
8 | }
|
9 | export default class Pagination extends React.Component<PaginationProps, PaginationState> {
|
10 | static defaultProps: {
|
11 | prefixCls: string;
|
12 | mode: string;
|
13 | current: number;
|
14 | total: number;
|
15 | simple: boolean;
|
16 | onChange: () => void;
|
17 | };
|
18 | static contextTypes: {
|
19 | antLocale: PropTypes.Requireable<object>;
|
20 | };
|
21 | constructor(props: PaginationProps);
|
22 | componentWillReceiveProps(nextProps: PaginationProps): void;
|
23 | onChange(p: number): void;
|
24 | render(): JSX.Element;
|
25 | }
|