Commit 11b3c8bb authored by liyl's avatar liyl Committed by 杨奕

Autocomplete: support suffixIcon & prefixIcon (#8446)

* feat: update autocomplete

* Feat: update input doc
parent 0462d9ce
...@@ -674,6 +674,8 @@ Attribute | Description | Type | Options | Default ...@@ -674,6 +674,8 @@ Attribute | Description | Type | Options | Default
| name | same as `name` in native input | string | — | — | | 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 | | select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | boolean | — | false |
| label | label text | string | — | — | | label | label text | string | — | — |
| prefix-icon | prefix icon class | string | — | — |
| suffix-icon | suffix icon class | string | — | — |
### Autocomplete slots ### Autocomplete slots
......
...@@ -831,6 +831,8 @@ export default { ...@@ -831,6 +831,8 @@ export default {
| name | 原生属性 | string | — | — | | name | 原生属性 | string | — | — |
| select-when-unmatched | 在输入没有任何匹配建议的情况下,按下回车是否触发 `select` 事件 | boolean | — | false | | select-when-unmatched | 在输入没有任何匹配建议的情况下,按下回车是否触发 `select` 事件 | boolean | — | false |
| label | 输入框关联的label文字 | string | — | — | | label | 输入框关联的label文字 | string | — | — |
| prefix-icon | 输入框头部图标 | string | — | — |
| suffix-icon | 输入框尾部图标 | string | — | — |
### Autocomplete slots ### Autocomplete slots
| name | 说明 | | name | 说明 |
......
...@@ -103,6 +103,8 @@ ...@@ -103,6 +103,8 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
prefixIcon: String,
suffixIcon: String,
label: String, label: String,
debounce: { debounce: {
type: Number, type: Number,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment