# vue-pc-pagination

> pagination for pc, based Vue2.x

Latest version **1.0.3** (published 2019-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-pc-pagination
pnpm add vue-pc-pagination
yarn add vue-pc-pagination
bun add vue-pc-pagination
```

## 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.3 |
| Published | 2019-09-04 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ylp |
| Maintainers | fly2688 |
| Keywords | vuejs, webpack, nodejs, vue-pc-pagination |

## Links

- npm: https://www.npmjs.com/package/vue-pc-pagination
- Repository: https://github.com/fly2688/vue-pc-pagination
- Homepage: https://github.com/fly2688/vue-pc-pagination#readme
- Issues: https://github.com/fly2688/vue-pc-pagination/issues
- npm.io page: https://npm.io/package/vue-pc-pagination

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-09-04
- 1.0.2 — 2019-09-04
- 1.0.1 — 2019-09-04
- 1.0.0 — 2019-09-04

## README

# vue-pc-pagination

> pagination for pc, based Vue2.x

### 安装（Install）
``
npm install vue-pc-pagination -save
``

### 导入（Import）
#### *.js
```javascript
import Pagination from 'vue-pc-pagination'
```

### 可全局注册使用
```javascript
Vue.use(Pagination);
```

### 标签（Target）
#### *vue
```html
<Pagination :options="pageOptions"></Pagination>
```

### demo
```javascript
 let currentPage = 1;
 let pageOptions = {
    total: 20,
    totalPage: 4,
    current: currentPage,
    onPageChanged: (val) => {
      currentPage = val;
    }
 }
```

### 功能（Api）

| Options         | Type     | Description                 | Default | Necessary | Result |
|-----------------|:--------:|:---------------------------:|:-------:|:---------:|:------:|
| total | number | 总数 | 0 | 否 | |
| totalPage | number | 总页数 | 0 | 否 | |
| current | number | 当前页 |  | 是 | |
| size | number | 数据一次显示多少条 | 10 | 否 | |
| isShowRecord | boolean | 是否显示条数 | false | 否 | |
| onPageChanged | function | 页数变化时执行 |  | 是 | 返回变化后的当前页 |

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