npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pagination-vue-simple

v1.1.1

Published

pagination plugins for vue

Readme

pagination-vue-simple

一个简单的原生自定义vue分页插件。

1.1.0 版本更新说明:

1.新增自定义页码被激活颜色theme-color的功能,并兼容ie9及其以上 2.对属性说明部分参数写法进行修正,使其与完整示例里的写法一致 3.新增效果图展示

安装

npm install pagination-vue-simple --save

初始化 在main.js中全局引入

import Vue from 'vue'
import PaginationVueSimple from 'pagination-vue-simple'

Vue.use(PaginationVueSimple)

最简示例

<template>
  <div id="app">
    <pagination-vue-simple 
        :total="80" 
        @current-change-page="getPage">
    </pagination-vue-simple>
  </div>
</template>
<script>
export default {
  name: 'app',
  data(){
    return {
      page: 1
    }
  },
  methods:{
    getPage(page){
      this.page = page
    }
  }
}
</script>

完整示例

<template>
  <div id="app">
    <pagination-vue-simple 
        :type="'sm'" 
        :total="80" 
        :limit="10" 
        :max-show="5" 
        :is-show-total-page="false" 
        :p-position="'left'"
        :theme-color="'green'"
        @current-change-page="getPage">
    </pagination-vue-simple>
  </div>
</template>
<script>
export default {
  name: 'app',
  data(){
    return {
      page: 1
    }
  },
  methods:{
    getPage(page){
      this.page = page
    }
  }
}
</script>

属性

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ------------ | -------------------------------- | ------- | ---------------------- | ---------------------- | | total | 数据总条数 | Number | | | | limit | 每页数据条数 | Number | | 10 | | max-show | 最多显示页码数 | Number | | 5 | | type | 页码样式大小类型 | String | normal/sm/lg | normal | | is-show-total-page| 是否显示总页码 | Boolean | true/false | false | | theme-color | 主题颜色,被选中时的颜色 | String | | #36af6c | | p-position | 页面放置位置 | String | left/center/right | left |

事件

| 事件名称 | 说明 | 回调参数 | | -------------- | ----------------- | --------------- | | current-change-page | 切换页码时会触发 | 当前页 page |