Skip to content

Commit

Permalink
Refactor #4871
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 28, 2023
1 parent 54919b1 commit 803e336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,10 @@ export interface CalendarSlots {
* Style class of the input icon
*/
class: any;
/**
* Click callback
*/
clickCallback: () => void;
}): VNode[];
/**
* Custom previous icon template.
Expand Down
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 803e336

Please sign in to comment.