Refactor #4231 - For Message

pull/4239/head
mertsincan 2023-08-02 15:01:26 +03:00
parent bebf00fc64
commit c6e5e3db3d
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -1,5 +1,5 @@
<template>
<transition name="p-message" appear>
<transition name="p-message" appear v-bind="ptm('transition')">
<div v-show="visible" :class="cx('root')" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('root')" data-pc-name="message">
<div :class="cx('wrapper')" v-bind="ptm('wrapper')">
<slot name="messageicon" class="p-message-icon">