🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

react-component-data-table

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-component-data-table - npm Package Compare versions

Comparing version
1.1.4
to
1.1.5
+11
-0
components/DataTableWithPagination.js

@@ -81,3 +81,14 @@ "use strict";

}
/**
* 刷新当前页数据
* @return {void}
* */
}, {
key: "refresh",
value: function refresh() {
this.refs['pagination'].refresh();
}
}, {
key: "render",

@@ -84,0 +95,0 @@ value: function render() {

@@ -85,2 +85,13 @@ "use strict";

_createClass(Pagination, [{
key: "refresh",
/**
* 刷新当前页数据
* @return {void}
* */
value: function refresh() {
this.props.onPageChange(Object.assign({}, this.state));
}
}, {
key: "render",

@@ -87,0 +98,0 @@ value: function render() {

+1
-1
{
"name": "react-component-data-table",
"version": "1.1.4",
"version": "1.1.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -38,4 +38,6 @@ # react-component-data-table

- [ ] Pagination - 自定义页码样式
- [x] Pagination - 实现refresh
- [x] DataTableWithPagination
- [x] DataTableWithPagination 添加索引显示
- [x] DataTableWithPagination - 添加索引显示
- [x] DataTableWithPagination - 实现refresh

@@ -159,2 +161,8 @@ # API

### refresh
刷新当前页数据
Returns **void**
### propTypes

@@ -225,2 +233,8 @@

### refresh
刷新当前页数据
Returns **void**
### propTypes

@@ -227,0 +241,0 @@