diff --git a/src/components/HeaderSearch/index.en-US.md b/src/components/HeaderSearch/index.en-US.md index a1cf841ffa6b484ec553a76284fa784d6de6df8d..6f4d06b4e10f43f16e2b997629a8ecd79ca50a3c 100644 --- a/src/components/HeaderSearch/index.en-US.md +++ b/src/components/HeaderSearch/index.en-US.md @@ -15,8 +15,9 @@ Usually placed as an entry to the global search, placed on the right side of the ----|------|-----|------ placeholder | placeholder text | string | - dataSource | current list of prompts | string[] | - -onSearch | Callback when selecting an item or pressing Enter | function(value) | - -onChange | Enter a callback for the search text | function(value) | - +onSearch | Called when searching items. | function(value) | - +onChange | Called when select an option or input value change, or value of input is changed | function(value) | - +onSelect | Called when a option is selected. param is option's value and option instance. | function(value) | - onPressEnter | Callback when pressing Enter | function(value) | - onVisibleChange | Show or hide the callback of the text box | function(value) |- defaultOpen | The input box is displayed for the first time. | boolean | false diff --git a/src/components/HeaderSearch/index.zh-CN.md b/src/components/HeaderSearch/index.zh-CN.md index a9a047547505414a0f3ea970d4c1a4735ad185b0..9c108c2bc14594ea082fe93af37836e610862f63 100644 --- a/src/components/HeaderSearch/index.zh-CN.md +++ b/src/components/HeaderSearch/index.zh-CN.md @@ -15,8 +15,9 @@ order: 8 ----|------|-----|------ placeholder | 占位文字 | string | - dataSource | 当前提示内容列表 | string[] | - -onSearch | 选择某项或按下回车时的回调 | function(value) | - -onChange | 输入搜索字符的回调 | function(value) | - +onSearch | 搜索补全项的时候调用 | function(value) | - +onChange | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) | - +onSelect | 被选中时调用,参数为选中项的 value 值 | function(value) | - onPressEnter | 按下回车时的回调 | function(value) | - onVisibleChange | 显示或隐藏文本框的回调 | function(value) |- defaultOpen | 输入框首次显示是否显示 | boolean | false