diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index 76223e7714..af15500952 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -27,7 +27,8 @@ const dataSource = ['12345', '23456', '34567']; | onChange | Called when select an option or input value change, or value of input is changed | function(value, label) | - | | onSelect | Called when a option is selected. param is option's value and option instance. | function(value, option) | - | | disabled | Whether disabled select | boolean | false | +| defaultActiveFirstOption | Whether active first option by default | boolean | true | | placeholder | placeholder of input | string | - | | children (for dataSource) | Data source for autocomplet | React.ReactElement / Array> | - | | children (for customize input element) | customize input element | HTMLInputElement / HTMLTextAreaElement / React.ReactElement | `` | -| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | boolean or function(inputValue, option) | true | \ No newline at end of file +| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | boolean or function(inputValue, option) | true | diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 2caeba03ec..f9219fbf6e 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -28,6 +28,7 @@ const dataSource = ['12345', '23456', '34567']; | onChange | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) | 无 | | onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | 无 | | disabled | 是否禁用 | boolean | false | +| defaultActiveFirstOption | 是否默认高亮第一个选项。 | boolean | true | placeholder | 输入框提示 | string | - | | children (自动完成的数据源) | 自动完成的数据源 | React.ReactElement / Array> | - | | children (自定义输入框) | 自定义输入框 | HTMLInputElement / HTMLTextAreaElement / React.ReactElement | `` |