Refactor #4871
parent
54919b1355
commit
803e3362a8
|
@ -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.
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue