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