Refactor #3965 - Refactor on Toast

This commit is contained in:
Tuğçe Küçükoğlu 2023-07-07 15:06:58 +03:00
parent 9b9444b6b0
commit 63b11df3fa
2 changed files with 13 additions and 28 deletions

View file

@ -1,6 +1,6 @@
<template>
<Portal>
<div ref="container" :class="cx('root')" v-bind="{ ...$attrs, ...ptm('root') }">
<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')">
<ToastMessage
v-for="msg of messages"