# vue-paginatejs

> A Vue.js project

Latest version **1.0.5** (published 2020-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-paginatejs
pnpm add vue-paginatejs
yarn add vue-paginatejs
bun add vue-paginatejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-04-26 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 920.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | es0202 |
| Maintainers | es0202 |

## Links

- npm: https://www.npmjs.com/package/vue-paginatejs
- npm.io page: https://npm.io/package/vue-paginatejs

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.11

## Recent versions

- 1.0.5 (latest) — 2020-04-26
- 1.0.4 — 2020-04-07
- 1.0.3 — 2020-04-07
- 1.0.2 — 2020-04-07
- 1.0.1 — 2020-04-03
- 1.0.0 — 2020-04-02

## README

# vue-paginate

> A Vue.js project

## Build Setup

```bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

## 参数介绍

sumPage:分页总数，默认 10
index:当前页，默认 1
contentDom:显示内容 dom 结构 selector 选择器
onPage:切换当前页执行的函数，默认在contentDom结构显示当前页码

## 使用 demo

```
<template>
  <div class="userlist-wrap">
    <vue-paginatejs :index="1" :sumPage="8" :onPage="mypage"></vue-paginatejs>
  </div>
</template>
<script>
import vuePaginatejs from 'vue-paginatejs';
export default {
  components: {
    vuePaginatejs
  },
  methods: {
    mypage(index) {
      if (index > 0 && index < 9) {
        //当前页码改变，必须执行
        this.setOps({
          index: index
        });
        console.log(index);
        //$(this.contentDom).html(index);
      }
    }
  }
};
</script>
```

---
_Source: https://npm.io/package/vue-paginatejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
