fix search input in site header

This commit is contained in:
afc163 2015-07-22 20:57:27 +08:00
parent 100cb89ff8
commit 0611570caa

View File

@ -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>
&nbsp;
<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}