fixed: 修改多选功能函数
This commit is contained in:
parent
f8a00fe2e8
commit
9be18be1c9
|
@ -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
|
@ -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} />;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue