fixed: 修改多选功能函数
This commit is contained in:
parent
f8a00fe2e8
commit
9be18be1c9
|
@ -47,9 +47,6 @@ const data13 = [
|
||||||
{ a: "郭靖", b: "男", c: 25, key: "3" }
|
{ a: "郭靖", b: "男", c: 25, key: "3" }
|
||||||
];
|
];
|
||||||
class Demo13 extends Component {
|
class Demo13 extends Component {
|
||||||
getCheckedObj = () => {
|
|
||||||
console.log(this.state);
|
|
||||||
};
|
|
||||||
setCheckedOjb = (data) =>{
|
setCheckedOjb = (data) =>{
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
|
@ -68,7 +65,6 @@ class Demo13 extends Component {
|
||||||
prefixCls="bee-table"
|
prefixCls="bee-table"
|
||||||
getSelectedDataFunc={this.setCheckedOjb}
|
getSelectedDataFunc={this.setCheckedOjb}
|
||||||
/>
|
/>
|
||||||
<button onClick={this.getCheckedObj}>xxxx</button>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -141,9 +141,8 @@ module.exports = function multiTable(Table) {
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
let { data } = this.props;
|
|
||||||
let columns = this.renderColumnsMultiSelect(this.props.columns).concat();
|
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