Refactor #3832 Refactor #3833 - Chips update & .d.ts fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-18 10:37:05 +03:00
parent a8f3e2d5e3
commit a42abd68a0
11 changed files with 53 additions and 7 deletions

View file

@ -28,7 +28,7 @@
<slot name="chip" :value="val">
<span class="p-chips-token-label">{{ val }}</span>
</slot>
<slot name="removetokenicon">
<slot name="removetokenicon" :onClick="(event) => removeItem(event, i)">
<component :is="removeTokenIcon ? 'span' : 'TimesCircleIcon'" :class="['p-chips-token-icon', removeTokenIcon]" @click="removeItem($event, i)" aria-hidden="true" />
</slot>
</li>