1.0.10 • Published 2 years ago

react-hook-pagenation v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

使用react-hooks开发的分页组件 a react pagenation component used reack-hooks.

🏠 Homepage

Install

npm i react-hook-pagenation

Usage

import Pagenation from 'react-hook-pagenation';
import 'react-hook-pagenation/lib/main.min.css';

<Pagenation currentPage={currentPage} pageSize={pageSize} pageSizeOptions={pageSizeOptions} total={total} handleChangePage={handleChangePage} handleChangePageSize={handleChangePageSize}></Pagenation>

APIs

参数(argument)类型(type)释义(mean)是否必选(required)
currentPagenumber当前分页YES
pageSizenumber分页大小NO
pageSizeOptionsarraynumber分页选项NO
totalnumber总数YES
totalTextstring自定义总数文案NO
handleChangePagefunction切换分页YES
handleChangePageSizefunction切换分页大小NO

Demo

参考example/src目录。 see example/src. demo1 demo2 demo3

Author

👤 flymoth

  • Website: flymoth.github.io
  • Github: @flymoth

🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 flymoth. This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago