rc-pagination.d.ts
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
declare module 'rc-pagination' {
export interface PaginationData {
className: string;
selectPrefixCls: string;
prefixCls: string;
pageSizeOptions: string[];
current: number;
defaultCurrent: number;
total: number;
pageSize: number;
defaultPageSize: number;
hideOnSinglePage: boolean;
showSizeChanger: boolean;
showLessItems: boolean;
showPrevNextJumpers: boolean;
showQuickJumper: boolean | object;
showTitle: boolean;
simple: boolean;
locale: object;
style: React.CSSProperties;
selectComponentClass: React.ComponentType;
prevIcon: React.ComponentType | React.ReactNode;
nextIcon: React.ComponentType | React.ReactNode;
jumpPrevIcon: React.ComponentType | React.ReactNode;
jumpNextIcon: React.ComponentType | React.ReactNode;
}
export interface PaginationProps extends Partial<PaginationData> {
onChange?: (page: number, pageSize: number) => void;
onShowSizeChange?: (current: number, size: number) => void;
itemRender?: (
page: number,
type: string,
element: React.ReactNode,
) => React.ReactNode;
showTotal?: (total: number, range: [number, number]) => React.ReactNode;
}
export default class Pagination extends React.Component<PaginationProps> {}
}