docs: update tree-select demo (#31500)

This commit is contained in:
Songhn 2021-07-23 09:40:48 +08:00 committed by GitHub
parent d4d0b9be5e
commit 9fd2940fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,9 +37,8 @@ class Demo extends React.Component {
};
};
onLoadData = treeNode =>
onLoadData = ({ id }) =>
new Promise(resolve => {
const { id } = treeNode.props;
setTimeout(() => {
this.setState({
treeData: this.state.treeData.concat([