eo-pagination
<eo-pagination>
分页
Examples
Basic
By token
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
type | "page" | "token" | "page" | ||
total | 数据总数 | number | 0 | |
page | 当前页数 | number | 1 | |
pageSize | 每页条数 | number | 20 | |
pageSizeOptions | 指定每页可以显示多少条 | number[] | [10, 20, 50, 100] | |
showSizeChanger | 是否展示 | boolean | true | |
nextToken | string | |||
previousToken | string |
Events
Name | Description | Event Detail |
---|---|---|
change | 页码及每页条数改变事件 | ChangeDetail |
Type references
ChangeDetailOfPage
Name | Type | Required | Description |
---|---|---|---|
page | number | ✅ | |
pageSize | number | ✅ |
ChangeDetailOfToken
Name | Type | Required | Description |
---|---|---|---|
type | "token" | ✅ | |
nextToken | string | undefined | ✅ | |
pageSize | number | ✅ |
ChangeDetail
ChangeDetailOfPage | ChangeDetailOfToken