pull/4899/head
tugcekucukoglu 2023-11-28 12:58:15 +03:00
parent 54919b1355
commit 803e3362a8
2 changed files with 5 additions and 1 deletions

View File

@ -798,6 +798,10 @@ export interface CalendarSlots {
* Style class of the input icon
*/
class: any;
/**
* Click callback
*/
clickCallback: () => void;
}): VNode[];
/**
* Custom previous icon template.

View File

@ -48,7 +48,7 @@
</template>
</CalendarButton>
<template v-else-if="showIcon && iconDisplay === 'input'">
<slot name="inputicon" :class="cx('inputIcon')">
<slot name="inputicon" :class="cx('inputIcon')" :clickCallback="onButtonClick">
<component :is="icon ? 'i' : 'CalendarIcon'" :class="[icon, cx('inputIcon')]" @click="onButtonClick" v-bind="ptm('inputicon')" />
</slot>
</template>