Skip to content
Latestv1.0.60

Table Pagination

Table pagination feature, supporting client-side pagination (automatic slicing) and server-side pagination (remote request).

Client-Side Pagination

Pass full data to the table, which automatically slices and renders based on the pagination component state. Suitable for scenarios with small data volume (e.g., thousands of records).

Client-Side Pagination

Server-Side Pagination

Set pagination.remote to true to disable automatic slicing. Users need to listen to the page-change event, manually call the API to fetch data and update :data.

Server-Side Pagination (Remote Request)

API

PaginationConfig

Pagination configuration options:

PropertyDescriptionTypeDefault
currentPageCurrent page numbernumber1
pageSizeNumber of items per pagenumber10
totalTotal number of itemsnumber0
pageSizesItems per page optionsnumber[][10, 20, 50, 100]
layoutPagination layoutstring'total, sizes, prev, pager, next, jumper'
remoteWhether remote paginationbooleanfalse
alignAlignment'left' | 'center' | 'right''left'
backgroundShow backgroundbooleanfalse
smallUse small paginationbooleanfalse
hideOnSinglePageHide on single pagebooleanfalse

Events

Event NameDescriptionCallback Parameters
page-changeTriggered when pagination parameters change(params: { currentPage: number, pageSize: number }) => void

Released under the MIT License.