# vue-pagenation

> ### HOW TO Use

Latest version **1.0.3** (published 2021-09-07) · 0 weekly downloads

## Install

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

## 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 | 2021-09-07 |
| First published | 2020-05-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 110.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Cake.Young |
| Maintainers | yang6701218 |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.3 (latest) — 2021-09-07
- 1.0.2 — 2021-09-07
- 1.0.1 — 2020-05-04
- 1.0.0 — 2020-05-04

## README

# vue-pagenation

### HOW TO Use

``` 
  :page-count="10"  // 分页的数量
  :current="current"  // 当前的页数
  :pager-count="7"  //展示多少个分页数
  
  //点击切换事件的回调函数
  @change-page="handleChange" 


```


## 
  "lib": "vue-cli-service build --target lib --name vue-pagenation --dest lib packages/pagenation/index.js"

1. target: 默认为构建应用，改为 lib 即可启用构建库模式

2. name: 输出文件名

3. dest: 输出目录，默认为 dist，这里我们改为 lib

4. entry: 入口文件路径，默认为 src/App.vue，这里改为 packages/index.js


## npm 注册 
    
   npm login 输入账号密码 yang6701xxx Arthas6701xxx
   npm publish  登录的时候要切换源（注意）

## 注意，如果使用vue-cli 默认会导入很多polyfill 
 `
    useBuiltIns:false 排除所有默认的polyfill
 `
 
 (```)
  presets: [[
    '@vue/cli-plugin-babel/preset',{
      useBuiltIns:false
    }
  ]]
 (```)


 ` "main": "./lib/vue-pagenation.common.js" `
 ` "private": false `
   

 ### 参考文献：https://www.cnblogs.com/wisewrong/archive/2018/12/28/10186611.html

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