Browse Source

improve demo for select optionFilterProp

pull/1072/head
afc163 9 years ago
parent
commit
1ef95ec1ec
  1. 16
      components/select/demo/search.md
  2. 2
      components/select/index.md

16
components/select/demo/search.md

@ -15,14 +15,16 @@ function handleChange(value) {
}
ReactDOM.render(
<Select defaultValue="lucy" showSearch style={{ width: 200 }}
notFoundContent="找不到呐!"
searchPlaceholder="输入"
<Select showSearch
style={{ width: 200 }}
placeholder="请选择人员"
optionFilterProp="children"
notFoundContent="无法找到"
searchPlaceholder="输入关键词"
onChange={handleChange}>
<Option value="jack">jack</Option>
<Option value="lucy">lucy</Option>
<Option value="disabled" disabled>disabled</Option>
<Option value="yiminghe">yiminghe</Option>
<Option value="jack">杰克</Option>
<Option value="lucy">露西</Option>
<Option value="tom">汤姆</Option>
</Select>
, mountNode);
````

2
components/select/index.md

@ -38,7 +38,7 @@
| searchPlaceholder | 搜索框默认文字 | string | 无 |
| notFoundContent | 当下拉列表为空时显示的内容 | string | 'Not Found' |
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽 | boolean | true |
| optionFilterProp | 输入项过滤对应的 option 属性 | string | value |
| optionFilterProp | 搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索 | string | value |
| combobox | 输入框自动提示模式 | boolean | false |
| size | 选择框大小,可选 `large` `small` | String | default |
| showSearch | 在下拉中显示搜索框 | boolean | false |

Loading…
Cancel
Save