diff --git a/examples/docs/en-US/input.md b/examples/docs/en-US/input.md index 9185a744d..e63a776a7 100644 --- a/examples/docs/en-US/input.md +++ b/examples/docs/en-US/input.md @@ -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 diff --git a/examples/docs/zh-CN/input.md b/examples/docs/zh-CN/input.md index e939e2c1d..96b7f4687 100644 --- a/examples/docs/zh-CN/input.md +++ b/examples/docs/zh-CN/input.md @@ -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 | 说明 | diff --git a/packages/autocomplete/src/autocomplete.vue b/packages/autocomplete/src/autocomplete.vue index a1326b5cb..ee08cdb54 100644 --- a/packages/autocomplete/src/autocomplete.vue +++ b/packages/autocomplete/src/autocomplete.vue @@ -103,6 +103,8 @@ type: Boolean, default: false }, + prefixIcon: String, + suffixIcon: String, label: String, debounce: { type: Number,