docs(Search): update document (#4414)
This commit is contained in:
@@ -82,19 +82,20 @@ Search support all native properties of input tag,such as `maxlength`、`place
|
||||
|
||||
### Events
|
||||
|
||||
Search support all native events of input tag,such as `focus`、`blur`、`keypress`
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|------|------|------|
|
||||
| search | Triggered when confirm search | value: current value |
|
||||
| input | Triggered when input value changed | value: current value |
|
||||
| focus | Triggered when input gets focus | event: Event |
|
||||
| blur | Triggered when input loses focus | event: Event |
|
||||
| clear | Triggered when click clear icon | event: Event |
|
||||
| cancel | Triggered when click cancel button | - |
|
||||
| search | Triggered when confirm search | - |
|
||||
| clear | Triggered when click clear icon | - |
|
||||
|
||||
### Slots
|
||||
|
||||
| Name | Description |
|
||||
|------|------|
|
||||
| label | Custom Search label |
|
||||
| action | Custom right button, displayed when `showAction` is true |
|
||||
| action | Custom right button, displayed when `show-action` is `true` |
|
||||
| left-icon | Custom left icon |
|
||||
| right-icon | Custom right icon |
|
||||
|
||||
Reference in New Issue
Block a user