Autocomplete: support suffixIcon & prefixIcon (#8446)

* feat: update autocomplete

* Feat: update input doc
pull/8501/head
liyl 2017-11-24 10:26:14 +08:00 committed by 杨奕
parent 0462d9ce1a
commit 11b3c8bbfd
3 changed files with 6 additions and 0 deletions

View File

@ -674,6 +674,8 @@ Attribute | Description | Type | Options | Default
| name | same as `name` in native input | string | — | — |
| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | boolean | — | false |
| label | label text | string | — | — |
| prefix-icon | prefix icon class | string | — | — |
| suffix-icon | suffix icon class | string | — | — |
### Autocomplete slots

View File

@ -831,6 +831,8 @@ export default {
| name | 原生属性 | string | — | — |
| select-when-unmatched | 在输入没有任何匹配建议的情况下,按下回车是否触发 `select` 事件 | boolean | — | false |
| label | 输入框关联的label文字 | string | — | — |
| prefix-icon | 输入框头部图标 | string | — | — |
| suffix-icon | 输入框尾部图标 | string | — | — |
### Autocomplete slots
| name | 说明 |

View File

@ -103,6 +103,8 @@
type: Boolean,
default: false
},
prefixIcon: String,
suffixIcon: String,
label: String,
debounce: {
type: Number,