mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
update tree-select demo
This commit is contained in:
parent
a2ec91a545
commit
19c5b29c07
@ -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="请选择"
|
||||
|
@ -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} />;
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user