From c46c6e1337d55959d2ed985f288d411d37e3d09a Mon Sep 17 00:00:00 2001 From: gitlwz <547485261@qq.com> Date: Mon, 7 Jan 2019 18:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90HeaderSearch=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E3=80=91=20(#3229)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改onChange、onSearch中英文 文档说明 添加onSelect文档说明 Signed-off-by: liuwenzhu <547485261@qq.com> --- src/components/HeaderSearch/index.en-US.md | 5 +++-- src/components/HeaderSearch/index.zh-CN.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/HeaderSearch/index.en-US.md b/src/components/HeaderSearch/index.en-US.md index a1cf841f..6f4d06b4 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 a9a04754..9c108c2b 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 -- GitLab