mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
Fix select demo
This commit is contained in:
parent
6acb9ce400
commit
cfcbc75190
@ -12,7 +12,7 @@ const Option = Select.Option;
|
|||||||
const Test = React.createClass({
|
const Test = React.createClass({
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
return {
|
return {
|
||||||
options: []
|
options: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
handleChange(value) {
|
handleChange(value) {
|
||||||
|
@ -80,7 +80,7 @@ const SearchInput = React.createClass({
|
|||||||
<Select
|
<Select
|
||||||
combobox
|
combobox
|
||||||
value={this.state.value}
|
value={this.state.value}
|
||||||
searchPlaceholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
notFoundContent=""
|
notFoundContent=""
|
||||||
defaultActiveFirstOption={false}
|
defaultActiveFirstOption={false}
|
||||||
showArrow={false}
|
showArrow={false}
|
||||||
|
@ -3,7 +3,7 @@ order: 1
|
|||||||
title: 带搜索框
|
title: 带搜索框
|
||||||
---
|
---
|
||||||
|
|
||||||
在浮层内顶部有搜索框的单项选择器。
|
展开后可对选项进行搜索。
|
||||||
|
|
||||||
````jsx
|
````jsx
|
||||||
import { Select } from 'antd';
|
import { Select } from 'antd';
|
||||||
|
@ -95,7 +95,7 @@ export default class Header extends React.Component {
|
|||||||
<div id="search-box">
|
<div id="search-box">
|
||||||
<Select combobox
|
<Select combobox
|
||||||
dropdownClassName="component-select"
|
dropdownClassName="component-select"
|
||||||
searchPlaceholder="搜索组件..."
|
placeholder="搜索组件..."
|
||||||
value={undefined}
|
value={undefined}
|
||||||
optionFilterProp="data-label"
|
optionFilterProp="data-label"
|
||||||
filterOption={this.handleSelectFilter}
|
filterOption={this.handleSelectFilter}
|
||||||
|
Loading…
Reference in New Issue
Block a user