vue-pages
A Dead Simple Vue Pagination Component Using Bootstrap Style
support vue 2.0+
demo
npm package
https://www.npmjs.com/package/vue-pages
Screenshot
Usage
js code
const vuePages = // or ES6// import vuePages from 'vue-pages' el: '#app' { return url1: '#' url2: '?param=pages' pageName:'p' total: 27 counts: 10 current1: 11 current2: 5 } methods: { thiscurrent1 = d } { e thiscurrent2 = d } components: vuePages
HTML code
Parameters
url
: URLpageName
: paramter's Namecounts
: the count of page numbers that can showtotal
: total pagescurrent
: the current page numberfn
: the click hanlder
Development
$ npm install $ npm run dev# open 'http://localhost:5000'