mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
display label in select defaultly, fix #50
This commit is contained in:
parent
27353ca9b9
commit
59869fa42d
@ -16,9 +16,9 @@ function handleChange(value) {
|
||||
|
||||
React.render(
|
||||
<Select value="lucy" style={{width:200}} onChange={handleChange}>
|
||||
<Option value="jack">jack</Option>
|
||||
<Option value="lucy">lucy</Option>
|
||||
<Option value="disabled" disabled>disabled</Option>
|
||||
<Option value="jack">Jack</Option>
|
||||
<Option value="lucy">Lucy</Option>
|
||||
<Option value="disabled" disabled>Disabled</Option>
|
||||
<Option value="yiminghe">yiminghe</Option>
|
||||
</Select>
|
||||
, document.getElementById('components-select-demo-basic'));
|
||||
|
@ -8,6 +8,7 @@ module.exports = React.createClass({
|
||||
return {
|
||||
prefixCls: 'ant-select',
|
||||
transitionName: 'slide-up',
|
||||
optionLabelProp: 'children',
|
||||
showSearch: false
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user