![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
bee-pagination-ac
Advanced tools
用于内容过多,分页显示内容
Pagination组件内部集成了子组件PaginationButton.PaginationButton并不暴露给用户。
使用单独的bee-Pagination包
先进行下载bee-Pagination包
npm install --save bee-pagination
组件调用
import Pagination from 'bee-pagination';
React.render(<div>
<Pagination
prev
next
first
last
ellipsis
boundaryLinks
items={20}
maxButtons={5}
activePage={this.state.activePage}
onSelect={this.handleSelect.bind(this)} />
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/Pagination.css">
import "./node_modules/src/Pagination.scss"
//或是
import "./node_modules/build/Pagination.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
items | 总页数 | number | 1 |
activePage | 哪一页是激活状态 | number | 1 |
onSelect | 切换页的方法 | func | () => {} |
maxButtons | 显示最多页数按钮 | number | 0 |
prev | 显示上一页按钮 | bool | false |
next | 显示下一页按钮 | bool | false |
first | 显示第一页按钮 | bool | false |
last | 显示最后一页按钮 | bool | last |
ellipsis | 显示省略按钮 | bool | false |
boundaryLinks | 显示边界按钮 | bool | false |
gap | 按钮之间有间隔 | bool | true |
noBorder | 不显示按钮边框 | bool | false |
size | 分页按钮大小(lg md sm) | string | 'sm' |
showJump | 是否显示跳页选择 | bool | false(为了兼容老版本) |
onDataNumSelect | 选择每页多少条的回调函数 | func | () => {} |
dataNumSelect | 每页多少条的下拉选择Option内容 | array | ['5','10','15','20'] |
dataNum | 下拉选择的设定值的index | num | 1 |
total | 一共多少条 | num | 1 |
disabled | pagination不可用,不可点击 | bool | false |
confirmBtn | 渲染确认按钮dom的方法 | func | () => {} |
$ git clone https://github.com/tinper-bee/bee-pagination
$ cd bee-pagination
$ npm install
$ npm run dev
FAQs
pagination ui component for react
The npm package bee-pagination-ac receives a total of 0 weekly downloads. As such, bee-pagination-ac popularity was classified as not popular.
We found that bee-pagination-ac demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.