Toast pt prop update
parent
82262c8aed
commit
8d9b770047
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue