mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #4433 - Message
This commit is contained in:
parent
936ea04d10
commit
69de98e7ef
3 changed files with 16 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<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 v-if="$slots.container" name="container" :onClose="close"></slot>
|
||||
<div v-else :class="cx('wrapper')" v-bind="ptm('wrapper')">
|
||||
<slot name="messageicon" class="p-message-icon">
|
||||
<component :is="icon ? 'span' : iconComponent" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></component>
|
||||
</slot>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue