mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
update filter.md
This commit is contained in:
parent
c93ca8af80
commit
29068a0797
@ -2,7 +2,7 @@
|
||||
|
||||
- order: 6
|
||||
|
||||
对某一列数据进行筛选。
|
||||
对某一列数据进行筛选,使用列的 `filter` 属性来指定筛选的列表,`onFilter` 方法指定选择后的回调。一般是向服务器请求筛选后的数据。
|
||||
|
||||
---
|
||||
|
||||
@ -25,6 +25,7 @@ var columns = [{
|
||||
},
|
||||
onFilter: function(filters) {
|
||||
console.log(filters);
|
||||
// 向服务器请求新数据
|
||||
this.fetch(this.props.dataSource + '?age=' + filters.join(','));
|
||||
}
|
||||
}, {
|
||||
|
Loading…
Reference in New Issue
Block a user