|
|
|
@ -21,9 +21,7 @@ const Demo = React.createClass({
|
|
|
|
|
},
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div style={{margin: 20}}>
|
|
|
|
|
<h2>Single Select</h2>
|
|
|
|
|
<TreeSelect style={{width: 300}} showSearch
|
|
|
|
|
<TreeSelect style={{width: 180}} showSearch
|
|
|
|
|
value={this.state.value} optionLabelProp="title"
|
|
|
|
|
dropdownMenuStyle={{maxHeight: 200, overflow: 'auto'}}
|
|
|
|
|
treeDefaultExpandAll
|
|
|
|
@ -38,7 +36,6 @@ const Demo = React.createClass({
|
|
|
|
|
</TreeNode>
|
|
|
|
|
</TreeNode>
|
|
|
|
|
</TreeSelect>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|