跳到主要内容

eo-pagination

<eo-pagination>

分页

Examples

Basic

Playground

By token

Playground

Properties

NameDescriptionTypeDefaultRequired
type"page" | "token" "page"
total

数据总数

number 0
page

当前页数

number 1
pageSize

每页条数

number 20
pageSizeOptions

指定每页可以显示多少条

number[] [10, 20, 50, 100]
showSizeChanger

是否展示pageSize分页器

boolean true
nextTokenstring
previousTokenstring

Events

NameDescriptionEvent Detail
change

页码及每页条数改变事件

ChangeDetail

Type references

ChangeDetailOfPage

NameTypeRequiredDescription
pagenumber
pageSizenumber

ChangeDetailOfToken

NameTypeRequiredDescription
type"token"
nextTokenstring | undefined
pageSizenumber

ChangeDetail

ChangeDetailOfPage | ChangeDetailOfToken