SplitButton improvements

pull/5677/head
tugcekucukoglu 2024-05-02 13:50:07 +03:00
parent cdee9a5ac7
commit d11360d6b3
1 changed files with 3 additions and 6 deletions

View File

@ -43,12 +43,9 @@
:pt="ptm('dropdown')" :pt="ptm('dropdown')"
> >
<template #icon="slotProps"> <template #icon="slotProps">
<!--TODO: Deprecated since v4.0--> <!--TODO: menubuttonicon and menuButtonIcon deprecated since v4.0-->
<slot v-if="$slots.menubuttonicon" name="menubuttonicon" :class="slotProps.class"> <slot :name="$slots.dropdownicon ? 'dropdownicon' : 'menubuttonicon'" :class="slotProps.class">
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" v-bind="ptm('dropdown')['icon']" data-pc-section="menubuttonicon" /> <component :is="menuButtonIcon || dropdownIcon ? 'span' : 'ChevronDownIcon'" :class="[dropdownIcon || menuButtonIcon, slotProps.class]" v-bind="ptm('dropdown')['icon']" data-pc-section="menubuttonicon" />
</slot>
<slot v-else name="dropdownicon" :class="slotProps.class">
<component :is="dropdownIcon ? 'span' : 'ChevronDownIcon'" :class="[dropdownIcon, slotProps.class]" v-bind="ptm('dropdown')['icon']" data-pc-section="menubuttonicon" />
</slot> </slot>
</template> </template>
</PVSButton> </PVSButton>