Pager
Extends:
react~Component → Pager
Constructor Summary
Public Constructor | ||
public |
constructor(props: *) |
Member Summary
Public Members | ||
public |
state: * |
Method Summary
Public Methods | ||
public |
componentWillReceiveProps(objectPattern: {"page": *, "total": *}) |
|
public |
onMainClick(e: *) |
|
public |
生成一个页码数组, 如果需要ellipsis, 那么ellpsis用负数表示它; 即ellipsis在5号位置, 那么他就是-5 输入: start 0, stop 10, paddingLeft 3 paddingRight 3 输出: 0, 1, 2, -3, 8, 9, 10 |
|
public |
render(): * |
|
public |
renderItem(conf: *): * |
Public Constructors
public constructor(props: *) source
Params:
Name | Type | Attribute | Description |
props | * |
Public Members
public state: * source
Public Methods
public componentWillReceiveProps(objectPattern: {"page": *, "total": *}) source
Params:
Name | Type | Attribute | Description |
objectPattern | {"page": *, "total": *} |
|
public onMainClick(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public range(start: number, stop: number, paddingLeft: number, paddingRight: number): Array.number source
生成一个页码数组, 如果需要ellipsis, 那么ellpsis用负数表示它; 即ellipsis在5号位置, 那么他就是-5 输入: start 0, stop 10, paddingLeft 3 paddingRight 3 输出: 0, 1, 2, -3, 8, 9, 10
Return:
Array.number | [start, paddingLeft, .., paddingRight, stop] |