fix: 修改方法名

This commit is contained in:
huyueb 2017-09-28 16:52:58 +08:00
parent a0522c6ce8
commit 350dc43193
3 changed files with 15 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class Demo13 extends Component {
type: "checkbox", type: "checkbox",
param: "key" param: "key"
}; };
let ComplexTable = multiSelect(Sum(sort(Table))); let ComplexTable = multiSelect(sum(sort(Table)));
return ( return (
<div> <div>
<ComplexTable <ComplexTable

View File

@ -30,3 +30,15 @@ Table拓展功能方法
### sum
排序功能
#### Column新增参数
| 参数 | 说明 | 类型 | 默认值 |
| ------ | ---------- | -------- | ---- |
| sorter | 排序函数,可以自定义 | Function | 无 |

View File

@ -7,7 +7,7 @@ let columns2 = {
dataIndex: "showSum" dataIndex: "showSum"
}; };
let Sum = Table => { let sum = Table => {
return class SumTable extends React.Component { return class SumTable extends React.Component {
//无状态 //无状态
constructor(props) { constructor(props) {
@ -56,4 +56,4 @@ let Sum = Table => {
}; };
}; };
export default Sum; export default sum;