SplitButton improvements
parent
cdee9a5ac7
commit
d11360d6b3
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue