Giter VIP home page Giter VIP logo

vue-pagination's Introduction

vue-pagination

A pagination components for vue

NOTE: This component is just for vue 2+. Please check your Vue version first.

Demo

This project is a runtime demo. You can get the demo by these command:

git clone https://github.com/shangxinbo/vue-pagination.git yourPath
cd yourPath
npm install 
npm run dev  // serve with hot reload at http://localhost:8080 to see the demo 

If you want to build production with minification. you can do this:

npm run build

Use

It's a single-file component for Vue.You should use it with webpack,babel and vue-loader to run.So I assume that you have node v4+ and npm v3+

npm install --save shangxinbo/vue-pagination

then in your component,you can use it by this:

import pages from 'vue-pagination'
export default {
    
    components:{
        pages
    }
    
}

Docs

Props

  • total

    type: Number

    desc: required is true, the max number of pages

    e.g. : 123

  • current

    type: Number

    desc: required is true, the current page

    e.g.:23

Events

  • jump(num)

    triggler: clicke the page button or prev/next button

    num : return the num going to

vue-pagination's People

Contributors

xinboshang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.