You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
575 B
36 lines
575 B
10 years ago
|
# combobox
|
||
|
|
||
|
- order: 2
|
||
|
|
||
|
combobox
|
||
|
|
||
|
---
|
||
|
|
||
|
|
||
|
````jsx
|
||
|
var Select = antd.Select;
|
||
|
var Option = Select.Option;
|
||
|
|
||
|
var style = {
|
||
|
color: 'red'
|
||
|
};
|
||
|
var c3 = (
|
||
|
<div>
|
||
|
<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'));
|
||
|
````
|