# page-foot

> 一个基于Element的翻页插件插件

Latest version **1.0.4** (published 2019-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install page-foot
pnpm add page-foot
yarn add page-foot
bun add page-foot
```

## 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.4 |
| Published | 2019-05-16 |
| First published | 2019-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bifjhh |
| Maintainers | bifjhh |
| Keywords | Vue2, Element |

## Links

- npm: https://www.npmjs.com/package/page-foot
- Repository: https://github.com/bifjhh/page-foot
- Homepage: https://github.com/bifjhh/page-foot#readme
- Issues: https://github.com/bifjhh/page-foot/issues
- npm.io page: https://npm.io/package/page-foot

## Recent versions

- 1.0.4 (latest) — 2019-05-16
- 1.0.3 — 2019-05-16
- 1.0.2 — 2019-05-16
- 1.0.1 — 2019-05-16
- 1.0.0 — 2019-05-16

## README

# page-foot
一个基于Element的Vue2插件

# 安装
```
npm install page-foot --save
或
cnpm insatll page-foot --save
```

# 使用
- 基于element-ui 请保证项目中全局引入了element-ui
- 在main.js中添加
```JavaScript
import PageFoot from 'page-foot'

Vue.use(PageFoot)
```
- 在Vue组件中使用
```JavaScript
<template>
  <div id="app">
    <page-foot :pagination="pagination" @page-change="handleCurrentChange" ></page-foot>
  </div>
</template>

<script>
export default {
  name: 'app',
  data: () => ({
    pagination: {
      current_page: 1,
      per_page: 10,
      total: 0
    }
  }),
  methods: {
    handleCurrentChange(val) {
      console.log(val)
    }
  }
}
</script>

<style>
</style>
```

# API使用
```JavaScript
<page-foot :pagination="pagination" @page-change="handleCurrentChange"></page-foot>

```

# 事件绑定
- [handleCurrentChange](https://element.eleme.cn/#/zh-CN/component/pagination)
```JavaScript
<page-foot @play="play"></page-foot>

export default {
    methods: {
      handleCurrentChange(val) {
        console.log('page change', val)
      }
    }
```

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