feat(Search): add focus method

This commit is contained in:
chenjiahan
2020-11-21 18:59:57 +08:00
parent 40840abeeb
commit 2833bc03f5
5 changed files with 39 additions and 1 deletions
+8
View File
@@ -141,6 +141,14 @@ Use `action` slot to custom right button, `cancel` event will no longer be Emitt
| clear | Emitted when the clear icon is clicked | _event: Event_ |
| cancel | Emitted when the cancel button is clicked | - |
### Methods
Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Search instance and call instance methods.
| Name | Description | Attribute | Return value |
| ----- | ------------------- | --------- | ------------ |
| focus | Trigger input focus | - | - |
### Slots
| Name | Description |