Tweak tree demo

This commit is contained in:
afc163 2017-09-13 22:18:44 +08:00
parent 89ce2254af
commit ae87b663bf
2 changed files with 2 additions and 2 deletions

View File

@ -1040,7 +1040,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
<div> <div>
<span <span
class="ant-input-search ant-input-affix-wrapper" class="ant-input-search ant-input-affix-wrapper"
style="width:300px;" style="margin-bottom:8px;"
> >
<input <input
class="ant-input" class="ant-input"

View File

@ -125,7 +125,7 @@ class SearchTree extends React.Component {
}); });
return ( return (
<div> <div>
<Search style={{ width: 300 }} placeholder="Search" onChange={this.onChange} /> <Search style={{ marginBottom: 8 }} placeholder="Search" onChange={this.onChange} />
<Tree <Tree
onExpand={this.onExpand} onExpand={this.onExpand}
expandedKeys={expandedKeys} expandedKeys={expandedKeys}