Update head.md

The parameters of the sorter method are rows
This commit is contained in:
Li Chao 2018-10-18 09:24:17 +08:00 committed by 偏右
parent bf83845986
commit b92d4ed627

View File

@ -9,7 +9,7 @@ title:
对某一列数据进行筛选,使用列的 `filters` 属性来指定需要筛选菜单的列,`onFilter` 用于筛选当前数据,`filterMultiple` 用于指定多选和单选。
对某一列数据进行排序,通过指定列的 `sorter` 函数即可启动排序按钮。`sorter: function(a, b) { ... }` a、b 为比较的两个列数据。
对某一列数据进行排序,通过指定列的 `sorter` 函数即可启动排序按钮。`sorter: function(rowA, rowB) { ... }` rowA、rowB 为比较的两个行数据。
使用 `defaultSortOrder` 属性,设置列的默认排序顺序。