跳到正文Skip to content

分页逻辑usePager usePager

分页状态机:页码 / 每页条数 / 切片 / 重置Pager state machine: page, size, slice and reset

逻辑Logic 逻辑模块Logic module

实时示例Live example

活体样例,可直接交互(点开浮层 / 下拉 / 试试键盘)——与组件画廊同源,切主题会同步。Interactive sample straight from the gallery (open overlays, dropdowns, try the keyboard); the theme stays in sync. 新标签打开 ↗Open in new tab ↗ · 看完整画廊Full gallery

PropsProps

逻辑模块没有 props——导出与签名见本节「导出」与源码。A logic module has no props — see Exports and the source.

导出Exports2

Pager usePager

完整签名见生成物 dist/index.d.ts(由源码自动提取)。Full signatures live in dist/index.d.ts, extracted from source.

源码Source

vue/lib/usePager.ts 在 GitHub 上查看View on GitHub ↗