mirror of https://github.com/ElemeFE/element
Autocomplete: support suffixIcon & prefixIcon (#8446)
* feat: update autocomplete * Feat: update input docpull/8501/head
parent
0462d9ce1a
commit
11b3c8bbfd
|
@ -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 {
|
||||||
| 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 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
prefixIcon: String,
|
||||||
|
suffixIcon: String,
|
||||||
label: String,
|
label: String,
|
||||||
debounce: {
|
debounce: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|
Loading…
Reference in New Issue