1.0.7 • Published 6 years ago

vue-paging-plugin v1.0.7

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

state-btn

A Vue.js plugin

分页插件 demo

插件安装

npm install vue-paging-plugin --save

插件引入

  • main.js
import PagingPlugin from 'vue-paging-plugin';

Vue.use(PagingPlugin);

使用方法

  • App.vue
<paging-plug :pageView="fPageView" :lastPage="fLastPage" @selectPage="pageSelect"></paging-plug>
export default {
  name: 'App',
  data(){
    return{
      fLastPage:100,
      fPageView:8
    }
  }
}

API

参数说明类型
pageView可视分页间隔Number
lastPage最大(最后)页码Number

参数返回

参数说明类型
pid当前选择页码Number

参数用法

export default {
  name: 'App',
  methods:{
    pageSelect(pid){
      console.log("pid = " + pid)
    }
  }
}
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago