mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
site: support header jumper
This commit is contained in:
parent
63a549dbc9
commit
f6a5c7ad2e
@ -8,7 +8,7 @@ import './index.less';
|
||||
import componentsList from '../../../_site/data/react-components';
|
||||
export default class Header extends React.Component {
|
||||
handleSearch(value) {
|
||||
console.log(value);
|
||||
this.props.history.push({ pathname: value });
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -40,7 +40,9 @@ export default class Header extends React.Component {
|
||||
</Col>
|
||||
<Col span="20">
|
||||
<div id="search-box">
|
||||
<Select combobox searchPlaceholder="搜索组件..." onChange={this.handleSearch.bind(this)}>
|
||||
<Select combobox
|
||||
searchPlaceholder="搜索组件..." optionLabelProp="nothing"
|
||||
onChange={this.handleSearch.bind(this)}>
|
||||
{options}
|
||||
</Select>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user