百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vuejs-paginate

> 前端框架
开源

一个 Vue.js(v2.x+) 组件,用于创建分页。

769 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个 Vue.js(v2.x+) 组件,用于创建分页。

vuejs-paginate

A Vue.js(v2.x+) component to make pagination. Inspired by react-paginate.

Easy to use by providing simple api. And you can customize the style of this component by css.

Online demo

Installation

NPM

Install the npm package.

javascript
$ npm install vuejs-paginate --save

Register the component.

  • ES5
javascript
var Paginate = require('vuejs-paginate')
Vue.component('paginate', Paginate)
  • ES6
javascript
import Paginate from 'vuejs-paginate'
Vue.component('paginate', Paginate)

Note: For version


### Value Binding
Use `v-model` to set the selected page number. You can programmatically modify the current page by using this.

```html

  
  

In HTML

Must use kebab-case for props in pure HTML.

Example

JavaScript

javascript
Vue.component('paginate', VuejsPaginate)

new Vue({
  el: '#app',
  methods: {
    clickCallback: function(pageNum) {
      console.log(pageNum)
    }
  }
})

HTML

xml

…

html

  Changed previous button
  Changed next button
  
    
      
      
      
    
  

Demo

You can see the demo for quickly understand how to use this package.

bash
$ git clone [email protected]:lokyoung/vuejs-paginate.git
$ cd vuejs-paginate
$ npm install
$ npm run demo

Check the code from ./demo/index.html and ./demo/App.vue.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptpaginationvuevue-componentsvue2

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架