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
@@ -157,6 +157,14 @@ export default {
| clear | 点击清除按钮后触发 | _event: Event_ |
| cancel | 点击取消按钮时触发 | - |
### 方法
通过 ref 可以获取到 Search 实例并调用实例方法,详见[组件实例方法](#/zh-CN/advanced-usage#zu-jian-shi-li-fang-fa)。
| 方法名 | 说明 | 参数 | 返回值 |
| ------ | -------------- | ---- | ------ |
| focus | 获取输入框焦点 | - | - |
### Slots
| 名称 | 说明 |