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 * Style class of the input icon
*/ */
class: any; class: any;
/**
* Click callback
*/
clickCallback: () => void;
}): VNode[]; }): VNode[];
/** /**
* Custom previous icon template. * Custom previous icon template.

View File

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