mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix search input in site header
This commit is contained in:
parent
100cb89ff8
commit
0611570caa
@ -15,7 +15,7 @@ $(function () {
|
||||
var AutoComplete = React.createClass({
|
||||
getOptions() {
|
||||
return searchData.map(function (s) {
|
||||
return <Option sData={s} key={s.title}>
|
||||
return <Option sData={s} key={s.title} text={'跳转到 ' + s.title}>
|
||||
<strong>{s.title}</strong>
|
||||
|
||||
<span>{s.desc}</span>
|
||||
@ -36,6 +36,7 @@ $(function () {
|
||||
render() {
|
||||
return <Select combobox style={{width: 200}}
|
||||
onSelect={this.handleSelect}
|
||||
optionLabelProp="text"
|
||||
dropdownMenuStyle={{maxHeight: 200, overflow: 'auto'}}
|
||||
searchPlaceholder="搜索组件..."
|
||||
renderDropdownToBody={true}
|
||||
|
Loading…
Reference in New Issue
Block a user