mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
597 B
597 B
combobox
- order: 2
combobox
var Select = antd.Select;
var Option = Select.Option;
var style = {
color: 'red'
};
var c3 = (
<div>
<h1>combobox</h1>
<div style={{width: 300}}>
<Select combobox>
<Option value="jack">
<b style={style}>jack</b>
</Option>
<Option value="lucy" >lucy</Option>
<Option value="disabled" disabled>disabled</Option>
<Option value="yiminghe">yiminghe</Option>
</Select>
</div>
</div>
);
React.render(
c3
, document.getElementById('components-select-demo-combobox'));