Toast pt prop update

pull/3919/head
Tuğçe Küçükoğlu 2023-05-03 17:14:24 +03:00
parent 82262c8aed
commit 8d9b770047
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,10 @@ export interface ToastPassThroughOptions {
* Uses to pass attributes to the root's DOM element.
*/
root?: ToastPassThroughOptionType;
/**
* Uses to pass attributes to the message's DOM element.
*/
message?: ToastPassThroughOptionType;
/**
* Uses to pass attributes to the container's DOM element.
*/

View File

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