pikax / vue-composable

Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
https://pikax.me/vue-composable/
MIT License
1.18k stars 64 forks source link

Array Pagination #1019

Closed enix-app closed 2 years ago

enix-app commented 2 years ago

Can I create a surrounded pagination with array like below:

{
  perPage: 5,
  current: 8,
  next: 9,
  prev: 7,
  surround: 3,
  surroundedArray: [5, 6, 7, 8, 9, 10, 11],
  last: 20,
  first: 1,
  pages: 20,
  rows: 100
}

I want to create pagination with Bootstrap 5 & VueJS 3.

Thankyou. This library is very helpful.