Navigation
Pagination
The range and total, an optional rows-per-page or go-to-page control, and the page row — in a full bar, a plain row, or prev / position / next.
import { EcoPagination } from "vue-ecosphere"
In a table footer
Say the range and the total, not just the page number. At most seven page buttons; the rest elide with a gap.
Full row
Change the rows per page: the reader stays on the rows they were reading.
Under a list
Prev and next disable at the ends rather than disappearing, so the row keeps its width.
1–12 of 44
Compact
For a list with no numbers worth showing.
Page 3 of 8
With go-to-page
Type a page and press Enter.
API
| Name | Type | Default | Description |
|---|---|---|---|
total | number | — | Total number of items. |
v-model:page | number | 1 | Current page, 1-based. Clamped to the page count. |
v-model:pageSize | number | 25 | Items per page. Changing it keeps the first row the reader was on. |
form | "bar" | "row" | "compact" | "row" | bar sits in a table or card footer; row under a list; compact is prev / position / next. |
pageSizes | number[] | — | Shows the rows-per-page select (pager__size). Offer it only where the list is long enough. |
jump | boolean | false | Shows the go-to-page field (pager__jump). |
prefix | string | — | Text before the range, e.g. "Showing". |
sizeLabel / jumpLabel | string | "Rows" / "Go to" | Labels of the two controls. |
#count | slot { from, to, total, page, pages } | — | Replace the range text in pager__c. |