parent
e1feeef23a
commit
0eb2981c04
|
@ -462,8 +462,8 @@ const CalendarSlots = [
|
||||||
description: 'Custom content for the calendar decade.'
|
description: 'Custom content for the calendar decade.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'triggericon',
|
name: 'dropdownicon',
|
||||||
description: 'Custom trigger icon template.'
|
description: 'Custom dropdown icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'previcon',
|
name: 'previcon',
|
||||||
|
|
|
@ -109,7 +109,7 @@ export interface CalendarProps {
|
||||||
showIcon?: boolean | undefined;
|
showIcon?: boolean | undefined;
|
||||||
/**
|
/**
|
||||||
* Icon of the calendar button.
|
* Icon of the calendar button.
|
||||||
* @deprecated since v3.27.0. Use 'triggericon' slot.
|
* @deprecated since v3.27.0. Use 'dropdownicon' slot.
|
||||||
*/
|
*/
|
||||||
icon?: string | undefined;
|
icon?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
@ -369,9 +369,9 @@ export interface CalendarSlots {
|
||||||
years: string[] | undefined;
|
years: string[] | undefined;
|
||||||
}): VNode[];
|
}): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom trigger icon template.
|
* Custom dropdown icon template.
|
||||||
*/
|
*/
|
||||||
triggericon(): VNode[];
|
dropdownicon(): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom previous icon template.
|
* Custom previous icon template.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
:aria-controls="panelId"
|
:aria-controls="panelId"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<slot name="triggericon">
|
<slot name="dropdownicon">
|
||||||
<component :is="icon ? 'span' : 'CalendarIcon'" :class="icon" />
|
<component :is="icon ? 'span' : 'CalendarIcon'" :class="icon" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue