GithubHelp home page GithubHelp logo

luisdanielroviracontreras / vue-laypage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sinchang/vue-laypage

0.0 1.0 0.0 428 KB

📃 A simple pagination component for Vue.js 2.x

Home Page: https://git.io/vSR6r

Vue 82.75% JavaScript 17.25%

vue-laypage's Introduction

vue-laypage

A simple pagination component for Vue.js, Based on layPage

NPM version Vue 2.x NPM downloads

Installation and Use

$ npm install vue-laypage --save
import Laypage from 'vue-laypage'
export default {
  components: {
    Laypage
  }
}

or

import Vue from 'vue'
import Laypage from 'vue-laypage'

Vue.use(Laypage)

Props

Name Type Description
pages Number 总页数,必填
groups Number 一组显示几页,默认为5
prev String, Number, Boolean 上一页按钮的文字,false 不显示
next String, Number, Boolean 下一页按钮的文字,false 不显示
first String, Number, Boolean 首页按钮的文字,false 不显示
last String, Number, Boolean 尾页按钮的文字,false 不显示
skin String 按钮高亮的颜色,默认#42b983
skip Boolean 是否显示跳转
jump Function 触发分页后的回调,返回当前页

LICENSE

MIT

vue-laypage's People

Contributors

sinchang avatar

Watchers

James Cloos 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.