react-component-data-table
Advanced tools
@@ -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", |
+15
-1
@@ -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 @@ |
34912
1.55%609
3.05%251
5.91%