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

View File

@ -8,6 +8,7 @@ module.exports = React.createClass({
return {
prefixCls: 'ant-select',
transitionName: 'slide-up',
optionLabelProp: 'children',
showSearch: false
};
},