update select demo code style

This commit is contained in:
afc163 2016-11-08 21:23:29 +08:00
parent 0ec4276eab
commit 5aea5b24ef
2 changed files with 8 additions and 9 deletions

View File

@ -27,7 +27,8 @@ function handleChange(value) {
}
ReactDOM.render(
<Select tags
<Select
tags
style={{ width: '100%' }}
onChange={handleChange}
tokenSeparators={[',']}

View File

@ -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);
````