Fixed #4370 - Calendar: dropdownicon class not being exposed

pull/4395/head
Tuğçe Küçükoğlu 2023-09-06 09:59:31 +03:00
parent bf62860c9f
commit 86695ce89c
2 changed files with 12 additions and 6 deletions

View File

@ -753,15 +753,21 @@ export interface CalendarSlots {
}): VNode[]; }): VNode[];
/** /**
* Custom dropdown icon template. * Custom dropdown icon template.
* @param {Object} scope - dropdown icon slot's params.
*/ */
dropdownicon(): VNode[]; dropdownicon(scope: {
/**
* Style class of the dropdown icon
*/
class: any;
}): VNode[];
/** /**
* Custom previous icon template. * Custom previous icon template.
* @param {Object} scope - previous icon slot's params. * @param {Object} scope - previous icon slot's params.
*/ */
previousicon(scope: { previousicon(scope: {
/** /**
* Style class of the dropdown icon * Style class of the previous icon
*/ */
class: any; class: any;
}): VNode[]; }): VNode[];
@ -771,7 +777,7 @@ export interface CalendarSlots {
*/ */
nexticon(scope: { nexticon(scope: {
/** /**
* Style class of the dropdown icon * Style class of the next icon
*/ */
class: any; class: any;
}): VNode[]; }): VNode[];
@ -781,7 +787,7 @@ export interface CalendarSlots {
*/ */
incrementicon(scope: { incrementicon(scope: {
/** /**
* Style class of the dropdown icon * Style class of the increment icon
*/ */
class: any; class: any;
}): VNode[]; }): VNode[];
@ -791,7 +797,7 @@ export interface CalendarSlots {
*/ */
decrementicon(scope: { decrementicon(scope: {
/** /**
* Style class of the dropdown icon * Style class of the decrement icon
*/ */
class: any; class: any;
}): VNode[]; }): VNode[];

View File

@ -42,7 +42,7 @@
data-pc-section="dropdownbutton" data-pc-section="dropdownbutton"
> >
<template #icon> <template #icon>
<slot name="dropdownicon"> <slot name="dropdownicon" :class="icon">
<component :is="icon ? 'span' : 'CalendarIcon'" :class="icon" v-bind="ptm('dropdownButton')['icon']" data-pc-section="icon" /> <component :is="icon ? 'span' : 'CalendarIcon'" :class="icon" v-bind="ptm('dropdownButton')['icon']" data-pc-section="icon" />
</slot> </slot>
</template> </template>