docs: Autocomplete optionLabelProp document (#4663)

close #4656
This commit is contained in:
陆离 2017-01-20 16:16:31 +08:00 committed by Wei Zhu
parent 823ac6c139
commit bee522133e
2 changed files with 2 additions and 0 deletions

View File

@ -29,3 +29,4 @@ Since `AutoComplete` is based on `Select`, so besides the following API, `AutoCo
| onSelect | Called when a option is selected. param is option's value and option instance. | function(value, option) | - |
| disabled | Whether disabled select | boolean | false |
| placeholder | placeholder of input | string | - |
| optionLabelProp | Which prop value of option will render as content of select. | string | `children` |

View File

@ -30,3 +30,4 @@ const dataSource = ['12345', '23456', '34567'];
| onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | 无 |
| disabled | 是否禁用 | boolean | false |
| placeholder | 输入框提示 | string | - |
| optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | `children` |