修改高阶组件的demo,规范用法,完善文档

This commit is contained in:
huyueb 2017-11-09 19:54:20 +08:00
parent 6edb3d5dd4
commit 2427cd9fda
3 changed files with 6 additions and 3 deletions

View File

@ -45,6 +45,9 @@ const data13 = [
{ a: "令狐冲", b: "男", c: 41,d:'大侠', key: "1" },
{ a: "郭靖", b: "男", c: 25,d:'大侠', key: "3" }
];
//拼接成复杂功能的table组件不能在render中定义需要像此例子声明在组件的外侧不然操作state会导致功能出现异常
let ComplexTable = multiSelect(sum(sort(Table)));
class Demo13 extends Component {
getSelectedDataFunc = (data) =>{
console.log(data)
@ -53,7 +56,6 @@ class Demo13 extends Component {
let multiObj = {
type: "checkbox",
};
let ComplexTable = multiSelect(sum(sort(Table)));
return (
<div>
<ComplexTable

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
## mixin
Table拓展功能方法
Table拓展功能方法。注拼接成复杂功能的table组件不能在render中定义需要像此例子声明在组件的外侧不然在操作state会导致功能出现异常
### multiSelect