We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47cc069 commit 660a41fCopy full SHA for 660a41f
src/components/Table/index.js
@@ -11,7 +11,11 @@ export default {
11
12
localLoading: false,
13
localDataSource: [],
14
- localPagination: Object.assign({}, this.pagination)
+ localPagination: Object.assign({}, this.pagination),
15
+
16
+ // 存储表格onchange时的filters, sorter对象
17
+ filters: {},
18
+ sorter: {}
19
}
20
},
21
props: Object.assign({}, T.props, {
@@ -135,7 +139,10 @@ export default {
135
139
* @param {Object} filters 过滤条件
136
140
* @param {Object} sorter 排序条件
137
141
*/
138
- loadData (pagination, filters, sorter) {
142
+ loadData (pagination, filters = this.filters, sorter = this.sorter) {
143
+ this.filters = filters
144
+ this.sorter = sorter
145
146
this.localLoading = true
147
const parameter = Object.assign({
148
pageNo: (pagination && pagination.current) ||
0 commit comments