mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
update select demo code style
This commit is contained in:
parent
0ec4276eab
commit
5aea5b24ef
@ -7,7 +7,7 @@ title:
|
||||
|
||||
## zh-CN
|
||||
|
||||
试下复制`露西,杰克`到输入框里。只在 tags 和 multiple 模式下可用。
|
||||
试下复制 `露西,杰克` 到输入框里。只在 tags 和 multiple 模式下可用。
|
||||
|
||||
## en-US
|
||||
|
||||
@ -27,7 +27,8 @@ function handleChange(value) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Select tags
|
||||
<Select
|
||||
tags
|
||||
style={{ width: '100%' }}
|
||||
onChange={handleChange}
|
||||
tokenSeparators={[',']}
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
order: 10
|
||||
title:
|
||||
title:
|
||||
zh-CN: 获得选项的文本
|
||||
en-US: Get value of selected item
|
||||
---
|
||||
@ -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>
|
||||
<Select labelInValue defaultValue={{ key: 'lucy' }} style={{ width: 120 }} onChange={handleChange}>
|
||||
<Option value="jack">Jack (100)</Option>
|
||||
<Option value="lucy">Lucy (101)</Option>
|
||||
</Select>
|
||||
, mountNode);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user