Browse Source

【HeaderSearch组件】 (#3229)

修改onChange、onSearch中英文 文档说明
添加onSelect文档说明

Signed-off-by: liuwenzhu <547485261@qq.com>
pull/3306/head
gitlwz 7 years ago
committed by 陈帅
parent
commit
c46c6e1337
  1. 5
      src/components/HeaderSearch/index.en-US.md
  2. 5
      src/components/HeaderSearch/index.zh-CN.md

5
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

5
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

Loading…
Cancel
Save