1.4.2 • Published 7 years ago

pagination-vue v1.4.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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
    }
  4. 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