diff --git a/demo/SiteHeader.vue b/demo/SiteHeader.vue index 3f182d72a..fd1c8b4dc 100644 --- a/demo/SiteHeader.vue +++ b/demo/SiteHeader.vue @@ -21,7 +21,12 @@ clear-after-select blur-after-select @select="handleSearch" - /> + > + + + + +
+ + + diff --git a/src/auto-complete/src/AutoComplete.tsx b/src/auto-complete/src/AutoComplete.tsx index 367163416..1e2125f21 100644 --- a/src/auto-complete/src/AutoComplete.tsx +++ b/src/auto-complete/src/AutoComplete.tsx @@ -330,7 +330,12 @@ export default defineComponent({ onFocus={this.handleFocus} onUpdateValue={this.handleInput} onBlur={this.handleBlur} - /> + > + {{ + suffix: this.$slots.suffix, + prefix: this.$slots.prefix + }} + ) } }}