fixed: 修改多选功能函数

This commit is contained in:
huyueb 2017-09-14 20:04:34 +08:00
parent f8a00fe2e8
commit 9be18be1c9
3 changed files with 2 additions and 7 deletions

View File

@ -47,9 +47,6 @@ const data13 = [
{ a: "郭靖", b: "男", c: 25, key: "3" }
];
class Demo13 extends Component {
getCheckedObj = () => {
console.log(this.state);
};
setCheckedOjb = (data) =>{
console.log(data)
}
@ -68,7 +65,6 @@ class Demo13 extends Component {
prefixCls="bee-table"
getSelectedDataFunc={this.setCheckedOjb}
/>
<button onClick={this.getCheckedObj}>xxxx</button>
</div>
);
}

File diff suppressed because one or more lines are too long

View File

@ -141,9 +141,8 @@ module.exports = function multiTable(Table) {
return columns;
}
render() {
let { data } = this.props;
let columns = this.renderColumnsMultiSelect(this.props.columns).concat();
return <Table {...this.props} columns={columns} data={data} />;
return <Table {...this.props} columns={columns} />;
}
};
};