mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4470 - Dialog/Toast: new container template
This commit is contained in:
parent
98afeacb55
commit
962ddb1353
6 changed files with 86 additions and 45 deletions
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div :class="cx('container')" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('container')">
|
||||
<div :class="[cx('content'), message.contentStyleClass]" v-bind="ptm('content')">
|
||||
<component v-if="templates.container" :is="templates.container" :message="message" :onClose="onCloseClick" />
|
||||
<div v-else :class="[cx('content'), message.contentStyleClass]" v-bind="ptm('content')">
|
||||
<template v-if="!templates.message">
|
||||
<component :is="templates.icon ? templates.icon : iconComponent && iconComponent.name ? iconComponent : 'span'" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||
<div :class="cx('text')" v-bind="ptm('text')">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue