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(
|
React.render(
|
||||||
<Select value="lucy" style={{width:200}} onChange={handleChange}>
|
<Select value="lucy" style={{width:200}} onChange={handleChange}>
|
||||||
<Option value="jack">jack</Option>
|
<Option value="jack">Jack</Option>
|
||||||
<Option value="lucy">lucy</Option>
|
<Option value="lucy">Lucy</Option>
|
||||||
<Option value="disabled" disabled>disabled</Option>
|
<Option value="disabled" disabled>Disabled</Option>
|
||||||
<Option value="yiminghe">yiminghe</Option>
|
<Option value="yiminghe">yiminghe</Option>
|
||||||
</Select>
|
</Select>
|
||||||
, document.getElementById('components-select-demo-basic'));
|
, document.getElementById('components-select-demo-basic'));
|
||||||
|
@ -8,6 +8,7 @@ module.exports = React.createClass({
|
|||||||
return {
|
return {
|
||||||
prefixCls: 'ant-select',
|
prefixCls: 'ant-select',
|
||||||
transitionName: 'slide-up',
|
transitionName: 'slide-up',
|
||||||
|
optionLabelProp: 'children',
|
||||||
showSearch: false
|
showSearch: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user