1.0.3 • Published 5 years ago

v-pc-pagination v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-pagination

GitHub Github file size npm node.js

基于 Vue 的PC端分页组件

How to use

npm i -S v-pc-pagination

Global regisiter

import Vue from 'vue'
import VuePagination from 'v-pc-pagination'
Vue.use(VuePagination)

OR in component

import VuePagination from 'v-pc-pagination'

// in vue component

export default {
  components: { VuePagination },
  methods: {
      pageChange (page) {
        console.log(page);
      }
  }
}
<vue-pagination :total="total" @change="pageChange"></vue-pagination>

Props

nametypedescdefault
totalNumberTotal page numberrequired
currentNumberCurrent page number1
showNumberDisplay Page number: odd number and >= 55

Event

nameparamsdesc
@changeindexThe page index which user clicked
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago