|
|
@ -38,11 +38,6 @@ const generateData = (_level, _preKey, _tns) => { |
|
|
|
generateData(z); |
|
|
|
|
|
|
|
const Demo = React.createClass({ |
|
|
|
getDefaultProps() { |
|
|
|
return { |
|
|
|
multiple: true, |
|
|
|
}; |
|
|
|
}, |
|
|
|
getInitialState() { |
|
|
|
return { |
|
|
|
expandedKeys: ['0-0-0', '0-0-1'], |
|
|
@ -82,7 +77,8 @@ const Demo = React.createClass({ |
|
|
|
return <TreeNode key={item.key} title={item.key} />; |
|
|
|
}); |
|
|
|
return ( |
|
|
|
<Tree checkable multiple={this.props.multiple} |
|
|
|
<Tree |
|
|
|
checkable |
|
|
|
onExpand={this.onExpand} expandedKeys={this.state.expandedKeys} |
|
|
|
autoExpandParent={this.state.autoExpandParent} |
|
|
|
onCheck={this.onCheck} checkedKeys={this.state.checkedKeys} |
|
|
|