react-pagination
分页组件 在线demo
Installation
npm install reactui-pagination
API
props
name | type | default | description |
---|---|---|---|
onclick | func | - | 点击分页事件 |
config | object | - | 配置 |
config中包括 currentPage : 当前页 total:总页数 perNum: 每页数目
Demo
npm run start
http://localhost:8888/example/
Usage
const config =currentPage : 1total : 100perNum : 6<Pagination onclick=thispageClick config=config></Pagination>