Browse Source

fix header select

pull/2070/head
afc163 9 years ago
parent
commit
a1c879bd2f
  1. 3
      site/theme/template/Layout/Header.jsx

3
site/theme/template/Layout/Header.jsx

@ -68,7 +68,7 @@ export default class Header extends React.Component {
}
handleSearch = (value) => {
this.context.router.push({ pathname: value });
//this.context.router.push({ pathname: value });
}
handleSelectFilter = (value, option) => {
@ -135,6 +135,7 @@ export default class Header extends React.Component {
placeholder="搜索组件..."
value={undefined}
optionFilterProp="data-label"
optionLabelProp="data-label"
filterOption={this.handleSelectFilter}
onSelect={this.handleSearch}
>

Loading…
Cancel
Save