mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
update select demo code style
This commit is contained in:
parent
0ec4276eab
commit
5aea5b24ef
@ -27,7 +27,8 @@ function handleChange(value) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Select tags
|
||||
<Select
|
||||
tags
|
||||
style={{ width: '100%' }}
|
||||
onChange={handleChange}
|
||||
tokenSeparators={[',']}
|
||||
|
@ -26,11 +26,9 @@ function handleChange(value) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<div>
|
||||
<Select labelInValue defaultValue={{ key: 'lucy' }} style={{ width: 120 }} onChange={handleChange}>
|
||||
<Option value="jack">Jack (100)</Option>
|
||||
<Option value="lucy">Lucy (101)</Option>
|
||||
</Select>
|
||||
</div>
|
||||
, mountNode);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user