Refactor #4871
parent
54919b1355
commit
803e3362a8
|
@ -798,6 +798,10 @@ export interface CalendarSlots {
|
|||
* Style class of the input icon
|
||||
*/
|
||||
class: any;
|
||||
/**
|
||||
* Click callback
|
||||
*/
|
||||
clickCallback: () => void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom previous icon template.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue