1.0.10 • Published 4 years ago

vue-mg-paginate v1.0.10

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

vue-mg-paginate

vue-mg-paginate

npm npm

Installation

npm i vue-mg-paginate

Usage

app.js

import MgPaginate from 'vue-mg-paginate'
Vue.component('MgPaginate', MgPaginate)

Example:

<template>
  <section class="container">
    <mg-paginate :data="data" :count-per-page="countPerPage" @change="paginate_data=$event"></mg-paginate>
  </section>
</template>

<style lang="scss" scoped>
</style>

<script>
export default {
  data() {
    return {
      data: [],
      paginate_data: [],
      countPerPage: 10,
    }
  },
  mounted: function () {
    for(let i = 0; i < 101; i++) {
      this.data.push({
        id: i+1,
      })
    }
  },
  methods: {
    ///
  },
  components: {
    //
  },  
}
</script>

License

MIT

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.10

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago