Browse Source

Fix select demo

pull/1530/merge
afc163 9 years ago
parent
commit
cfcbc75190
  1. 2
      components/select/demo/combobox.md
  2. 2
      components/select/demo/search-box.md
  3. 2
      components/select/demo/search.md
  4. 2
      site/component/Header/index.jsx

2
components/select/demo/combobox.md

@ -12,7 +12,7 @@ const Option = Select.Option;
const Test = React.createClass({
getInitialState() {
return {
options: []
options: [],
};
},
handleChange(value) {

2
components/select/demo/search-box.md

@ -80,7 +80,7 @@ const SearchInput = React.createClass({
<Select
combobox
value={this.state.value}
searchPlaceholder={this.props.placeholder}
placeholder={this.props.placeholder}
notFoundContent=""
defaultActiveFirstOption={false}
showArrow={false}

2
components/select/demo/search.md

@ -3,7 +3,7 @@ order: 1
title: 带搜索框
---
在浮层内顶部有搜索框的单项选择器
展开后可对选项进行搜索
````jsx
import { Select } from 'antd';

2
site/component/Header/index.jsx

@ -95,7 +95,7 @@ export default class Header extends React.Component {
<div id="search-box">
<Select combobox
dropdownClassName="component-select"
searchPlaceholder="搜索组件..."
placeholder="搜索组件..."
value={undefined}
optionFilterProp="data-label"
filterOption={this.handleSelectFilter}

Loading…
Cancel
Save