New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-pages

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-pages

A Vue Pagination Component Using Bootstrap Style

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version

vue-pages

A Dead Simple Vue Pagination Component Using Bootstrap Style

support vue 2.0+

demo

demo demo's code

npm package

https://www.npmjs.com/package/vue-pages

Screenshot

range

Usage

js code

const vuePages = require('vue-pages')
// or ES6
// import vuePages from 'vue-pages'

new Vue({
  el: '#app',
  data() {
    return {
      url1: '#',
      url2: '?param=pages',
      pageName:'p',
      total: 27,
      counts: 10,
      current1: 11,
      current2: 5
    }
  },
  methods: {
    fn1(d, e){
      this.current1 = d
    },
    fn2(d, e){
      e.preventDefault()
      this.current2 = d
    }
  },
  components: {
    vuePages
  }
})

HTML code

<vue-pages :url="url1" :total="total" :counts="counts" :current="current1" :fn="fn1"></vue-pages>
      
<vue-pages :url="url2" :total="total" :counts="counts" :current="current2" :fn="fn2"></vue-pages>

Parameters

  • url: URL
  • pageName: paramter's Name
  • counts: the count of page numbers that can show
  • total: total pages
  • current: the current page number
  • fn: the click hanlder

Development

$ npm install

$ npm run dev
# open 'http://localhost:5000'

Keywords

vue

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts