docs(Search): update document (#4414)

This commit is contained in:
neverland
2019-09-10 17:34:58 +08:00
committed by GitHub
parent f6f696ff73
commit 4192ef198e
9 changed files with 37 additions and 40 deletions
+6 -5
View File
@@ -82,19 +82,20 @@ Search support all native properties of input tagsuch as `maxlength`、`place
### Events
Search support all native events of input tagsuch 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 |