Pagination (分页)

分页导航(v-model:current-page + total-page),带快速跳页。

基础用法

Page: 1

Basic.vue

少量页码

Few.vue

加载中

Loading.vue

可爬链接

Crawlable.vue

属性

属性类型默认值说明
currentPage *number—
totalPage *number—
isLoadingboolean—
pageHref((page: number) => string)—Map a page number to its URL. When provided, the page numbers and the prev / next controls render real <a href> (crawlable pagination) instead of plain buttons. A plain click still emits `update:currentPage` while the link navigates; a click with Ctrl, Cmd, Shift or Alt held does not, because the browser opens that page elsewhere and this view stays where it is.

事件

事件回调参数
update:currentPagepage: number