pagination-vue

1.4.2 • Public • Published

USE

  1. npm i --save pagination-vue

  2. import pagination from 'pagination-vue'

  3. like this when use

template: `
  <pagination
    :countTotal='11'
    :initialSelectedIndex='0'
    :countPage='5'
    :pageClick="paginationPageClick"></pagination>
`,
components: {pagination},
paginationPageClick: function(index) {
  console.log(index) // you can get the click index
}
  1. props
  • paginationPageClick: function, callback with index
  • count-total: max count, is optional
  • count-page: how many items in a group, is optional, default is 5
  • initialSelectedIndex: initial count, if u need, is optional

Readme

Keywords

Package Sidebar

Install

npm i pagination-vue

Weekly Downloads

2

Version

1.4.2

License

MIT

Last publish

Collaborators

  • zweizhao