From c4b7221efb0f4110d75bac032c4fde1131a6b771 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:32:23 +0300 Subject: [PATCH] Refactor #4274 - For Chips --- components/lib/chips/Chips.d.ts | 13 +++++++++++-- components/lib/chips/Chips.vue | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/components/lib/chips/Chips.d.ts b/components/lib/chips/Chips.d.ts index 9fc6a9e2e..bffd3a7d6 100755 --- a/components/lib/chips/Chips.d.ts +++ b/components/lib/chips/Chips.d.ts @@ -209,9 +209,18 @@ export interface ChipsSlots { */ removetokenicon(scope: { /** - * Remove icon click event + * Style class of the icon. */ - onClick(): void; + class: string; + /** + * Index of the token. + */ + index: number; + /** + * Remove token icon function. + * @param {Event} event - Browser event + */ + onClick(event: Event, index: number): void; }): VNode[]; } /** diff --git a/components/lib/chips/Chips.vue b/components/lib/chips/Chips.vue index 7ecdb5d24..c5df6f5c0 100755 --- a/components/lib/chips/Chips.vue +++ b/components/lib/chips/Chips.vue @@ -31,7 +31,7 @@ {{ val }} - +