demo: make select demo width adapted

This commit is contained in:
afc163 2018-10-06 18:47:18 +08:00
parent 419287de2b
commit 996ee9c0a2
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ exports[`renders ./components/select/demo/coordinate.md correctly 1`] = `
<div>
<div
class="ant-select ant-select-enabled"
style="width:90px"
style="width:120px"
>
<div
aria-autocomplete="list"
@ -197,7 +197,7 @@ exports[`renders ./components/select/demo/coordinate.md correctly 1`] = `
</div>
<div
class="ant-select ant-select-enabled"
style="width:90px"
style="width:120px"
>
<div
aria-autocomplete="list"

View File

@ -52,10 +52,10 @@ class App extends React.Component {
const cityOptions = this.state.cities.map(city => <Option key={city}>{city}</Option>);
return (
<div>
<Select defaultValue={provinceData[0]} style={{ width: 90 }} onChange={this.handleProvinceChange}>
<Select defaultValue={provinceData[0]} style={{ width: 120 }} onChange={this.handleProvinceChange}>
{provinceOptions}
</Select>
<Select value={this.state.secondCity} style={{ width: 90 }} onChange={this.onSecondCityChange}>
<Select value={this.state.secondCity} style={{ width: 120 }} onChange={this.onSecondCityChange}>
{cityOptions}
</Select>
</div>