mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
demo: make select demo width adapted
This commit is contained in:
parent
419287de2b
commit
996ee9c0a2
@ -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"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user