https://github.com/funlee/react-bs-pagination
react-bs-pagination
https://github.com/funlee/react-bs-pagination
bootstrap3 component npm-module npm-package npms pagination react
Last synced: 4 months ago
JSON representation
react-bs-pagination
- Host: GitHub
- URL: https://github.com/funlee/react-bs-pagination
- Owner: funlee
- Created: 2018-03-16T09:18:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T14:02:25.000Z (about 8 years ago)
- Last Synced: 2025-11-27T09:42:59.802Z (7 months ago)
- Topics: bootstrap3, component, npm-module, npm-package, npms, pagination, react
- Language: CSS
- Size: 253 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
react-bs-pagination
=======================
一个利用 [React](https://reactjs.org/ 'react') 开发的分页组件,样式使用的 [bootstrap](https://v3.bootcss.com/ 'bootstrap')

在线预览:[react-bs-pagination](http://show.funlee.cn/react-bs-pagination/index.html 'react-bs-pagination')
Getting started
---------------
```bash
npm i -D react-bs-pagination
```
Demo && API
--------
```javascript
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Pagination from 'react-bs-pagination';
import 'react-bs-pagination/lib/index.css'; // 组件的默认样式,可替换为自定义样式
class App extends Component {
constructor(props) {
super(props);
}
getStatus(current, size) {
console.log('the current page number is' + current + ' ,the current one page size is:' + size)
}
render() {
return
}
}
ReactDOM.render(, document.getElementById('app'))
```
Other
-------
* 如果要自定义样式,可以不引入组件的样式文件,替换为自定义的 CSS 文件
* 必须在 React 环境下使用