Refactor #4231 - For Toast

pull/4239/head
mertsincan 2023-08-02 15:02:57 +03:00
parent 72622d7954
commit 760010a18b
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -1,7 +1,7 @@
<template>
<Portal>
<div ref="container" :class="cx('root')" :style="sx('root', true, { position })" v-bind="{ ...$attrs, ...ptm('root') }">
<transition-group name="p-toast-message" tag="div" @enter="onEnter" @leave="onLeave" v-bind="ptm('message')">
<transition-group name="p-toast-message" tag="div" @enter="onEnter" @leave="onLeave" v-bind="{ ...ptm('message'), ...ptm('transition') }">
<ToastMessage
v-for="msg of messages"
:key="msg.id"