0.0.2 • Published 7 years ago
reactui-pagination v0.0.2
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 : 1,
total : 100,
perNum : 6
}
<Pagination onclick={this.pageClick.bind(this)} config={config}></Pagination>