Refactor #4231 - For Calendar

pull/4239/head
mertsincan 2023-08-02 14:59:53 +03:00
parent fffa1ef044
commit 228a66fc0f
2 changed files with 5 additions and 1 deletions

View File

@ -290,6 +290,10 @@ export interface CalendarPassThroughOptions {
* @see {@link BaseComponent.ComponentHooks} * @see {@link BaseComponent.ComponentHooks}
*/ */
hooks?: ComponentHooks; hooks?: ComponentHooks;
/**
* Used to control Vue Transition API.
*/
transition?: any;
} }
/** /**

View File

@ -48,7 +48,7 @@
</template> </template>
</CalendarButton> </CalendarButton>
<Portal :appendTo="appendTo" :disabled="inline"> <Portal :appendTo="appendTo" :disabled="inline">
<transition name="p-connected-overlay" @enter="onOverlayEnter($event)" @after-enter="onOverlayEnterComplete" @after-leave="onOverlayAfterLeave" @leave="onOverlayLeave"> <transition name="p-connected-overlay" @enter="onOverlayEnter($event)" @after-enter="onOverlayEnterComplete" @after-leave="onOverlayAfterLeave" @leave="onOverlayLeave" v-bind="ptm('transition')">
<div <div
v-if="inline || overlayVisible" v-if="inline || overlayVisible"
:ref="overlayRef" :ref="overlayRef"