|
@ -22,7 +22,6 @@ const generateTreeNodes = () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const TreeDemo = React.createClass({ |
|
|
const TreeDemo = React.createClass({ |
|
|
propTypes: {}, |
|
|
|
|
|
timeout(duration = 0) { |
|
|
timeout(duration = 0) { |
|
|
return new Promise((resolve, reject) => { |
|
|
return new Promise((resolve, reject) => { |
|
|
setTimeout(resolve.bind(this), duration); |
|
|
setTimeout(resolve.bind(this), duration); |
|
|