From dfb30bc1ac18eecaa8d37651163252bb9f556b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 16 Aug 2023 09:24:31 +0300 Subject: [PATCH] Refactor #4274 - For AutoComplete --- components/lib/autocomplete/AutoComplete.d.ts | 16 +++++++++++++--- components/lib/autocomplete/AutoComplete.vue | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/components/lib/autocomplete/AutoComplete.d.ts b/components/lib/autocomplete/AutoComplete.d.ts index 14e495818..7c6a27c91 100755 --- a/components/lib/autocomplete/AutoComplete.d.ts +++ b/components/lib/autocomplete/AutoComplete.d.ts @@ -603,14 +603,24 @@ export interface AutoCompleteSlots { */ class: string; /** - * Remove token icon function. + * Index of the token. */ - onClick: void; + index: number; + /** + * Remove token icon function. + * @param {Event} event - Browser event + */ + onClick(event: Event, index: number): void; }): VNode[]; /** * Custom loading icon template. */ - loadingicon(): VNode[]; + loadingicon(scope: { + /** + * Style class of the loading icon. + */ + class: string; + }): VNode[]; } /** diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index c7bb68c8e..0cf6e9046 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -55,7 +55,7 @@ {{ getOptionLabel(option) }} - +