fix: 修改方法名
This commit is contained in:
parent
a0522c6ce8
commit
350dc43193
|
@ -56,7 +56,7 @@ class Demo13 extends Component {
|
|||
type: "checkbox",
|
||||
param: "key"
|
||||
};
|
||||
let ComplexTable = multiSelect(Sum(sort(Table)));
|
||||
let ComplexTable = multiSelect(sum(sort(Table)));
|
||||
return (
|
||||
<div>
|
||||
<ComplexTable
|
||||
|
|
|
@ -30,3 +30,15 @@ Table拓展功能方法
|
|||
|
||||
|
||||
|
||||
### sum
|
||||
|
||||
排序功能
|
||||
|
||||
#### Column新增参数
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| ------ | ---------- | -------- | ---- |
|
||||
| sorter | 排序函数,可以自定义 | Function | 无 |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ let columns2 = {
|
|||
dataIndex: "showSum"
|
||||
};
|
||||
|
||||
let Sum = Table => {
|
||||
let sum = Table => {
|
||||
return class SumTable extends React.Component {
|
||||
//无状态
|
||||
constructor(props) {
|
||||
|
@ -56,4 +56,4 @@ let Sum = Table => {
|
|||
};
|
||||
};
|
||||
|
||||
export default Sum;
|
||||
export default sum;
|
||||
|
|
Loading…
Reference in New Issue