# react-web-pagination

> react pagination

Latest version **0.1.0** (published 2017-12-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-web-pagination
pnpm add react-web-pagination
yarn add react-web-pagination
bun add react-web-pagination
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-12-04 |
| First published | 2017-11-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zxh742755443 |
| Maintainers | zhangxiaohu |
| Keywords | react, pagination |

## Links

- npm: https://www.npmjs.com/package/react-web-pagination
- Repository: https://github.com/zxh742755443/react-web-pagination
- Homepage: https://github.com/zxh742755443/react-web-pagination#readme
- Issues: https://github.com/zxh742755443/react-web-pagination/issues
- npm.io page: https://npm.io/package/react-web-pagination

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-12-04
- 0.0.3 — 2017-11-29
- 0.0.2 — 2017-11-29
- 0.0.1 — 2017-11-29

## README

## 介绍
使用react做的分页组件
## 安装
```
    npm install react-web-pagination
```
## API
参数 | 说明 | 类型| 默认值
----|------|----|----
current | 当前页数  | number| 无
pageSize | 每页条数  | number| 10
pageSizeOptions | 指定每页可以显示多少条 | int[]| [10,20,30,40]
showQuickJumper | 是否可以快速跳转至某页  | boolean| false
showSizeChanger | 是否可以改变 pageSize  | boolean| false
showTotal | 是否显示总item  | boolean| false
total | 数据总数  | number| 0
onChange | 页码改变的回调，参数是改变后的页码及每页条数  | Function(page, pageSize)| 无
## Auto Play效果
![image](https://note.youdao.com/yws/api/personal/file/WEB4a8547d5e8fb0c1528a42f045436924c?method=download&shareKey=a4b7120f7be220d4f65fd5c3ab7eac73)
## 用法
```
import React, { Component } from "react";
import Pagination from "react-web-pagination";

class App extends Component {
  onChange(page,pageSize){
    console.log(page,pageSize)
  }
  render() {
    return (
      <div style={{ height: 200, width: "100%" ,padding:50}}>
        <Pagination total={100} pageSize={10} onChange={(page,pageSize)=>this.onChange(page,pageSize)} showSizeChanger showQuickJumper showTotal/>
      </div>
    );
  }
}

export default App;


```

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