display label in select defaultly, fix #50

This commit is contained in:
afc163 2015-07-22 12:37:20 +08:00
parent 27353ca9b9
commit 59869fa42d
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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
}; };
}, },