update tree-select demo

This commit is contained in:
afc163 2016-02-22 23:51:26 +08:00
parent a2ec91a545
commit 19c5b29c07
3 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@ const Demo = React.createClass({
},
render() {
return (
<TreeSelect style={{ width: 360 }}
<TreeSelect style={{ width: 300 }}
value={this.state.value}
dropdownMenuStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="请选择"

View File

@ -50,7 +50,6 @@ const Demo = React.createClass({
render() {
const tProps = {
treeData,
size: 'large',
value: this.state.value,
onChange: this.onChange,
multiple: true,
@ -58,7 +57,7 @@ const Demo = React.createClass({
searchPlaceholder: '请选择',
treeDefaultExpandAll: true,
style: {
width: 360,
width: 300,
},
};
return <TreeSelect {...tProps} />;

View File

@ -40,7 +40,7 @@ const Demo = React.createClass({
},
render() {
return (
<TreeSelect style={{ width: 360 }}
<TreeSelect style={{ width: 300 }}
value={this.state.value}
dropdownMenuStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={treeData}