mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
docs: update tree-select demo (#31500)
This commit is contained in:
parent
d4d0b9be5e
commit
9fd2940fdd
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user