5 changed files with 56 additions and 3 deletions
@ -0,0 +1,23 @@ |
|||
--- |
|||
title: |
|||
en-US: HeaderSearch |
|||
zh-CN: HeaderSearch |
|||
subtitle: Top search box |
|||
cols: 1 |
|||
order: 8 |
|||
--- |
|||
|
|||
Usually placed as an entry to the global search, placed on the right side of the navigation toolbar. |
|||
|
|||
## API |
|||
|
|||
参数 | 说明 | 类型 | 默认值 |
|||
----|------|-----|------ |
|||
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) | - |
|||
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 |
|||
open | The input box is displayed | booelan |false |
|||
Loading…
Reference in new issue