An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

react-bs-pagination
=======================
一个利用 [React](https://reactjs.org/ 'react') 开发的分页组件,样式使用的 [bootstrap](https://v3.bootcss.com/ 'bootstrap')

![](https://raw.github.com/funlee/react-bs-pagination/master/demo/demo.png "react-bs-pagination")

在线预览:[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 环境下使用