Refactor #3832 - Button icon template updates

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-14 10:44:20 +03:00
parent f6c520c53d
commit 813fa97075
6 changed files with 115 additions and 69 deletions

View file

@ -15,9 +15,11 @@
@keydown="onDropdownKeydown"
v-bind="menuButtonProps"
>
<slot name="menubuttonicon">
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="menuButtonIcon" />
</slot>
<template #icon>
<slot name="menubuttonicon">
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="menuButtonIcon" />
</slot>
</template>
</PVSButton>
<PVSMenu ref="menu" :id="ariaId + '_overlay'" :model="model" :popup="true" :autoZIndex="autoZIndex" :baseZIndex="baseZIndex" :appendTo="appendTo" />
</div>