Add focus method for some form component

This commit is contained in:
Dreamacro
2017-07-18 13:47:35 +08:00
committed by 杨奕
parent 965989b016
commit 0a2dd8bd53
23 changed files with 185 additions and 10 deletions

View File

@@ -802,7 +802,7 @@ export default {
| on-icon-click | 点击图标的回调函数 | function | — | — |
| icon | 输入框尾部图标 | string | — | — |
### props
### Props
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| -------- | ----------------- | ------ | ------ | ------ |
| value | 指定选项的值为选项对象的某个属性值 | string | — | value |
@@ -812,3 +812,8 @@ export default {
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| select | 点击选中建议项时触发 | 选中建议项 |
### Methods
| 方法名 | 说明 | 参数 |
| ---- | ---- | ---- |
| focus | 使 input 获取焦点 | - |