Fixed #1403 - New styleClass and contentStyleClass props for Toast
parent
57fdc54777
commit
a4973cb39a
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="containerClass" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="p-toast-message-content">
|
||||
<div class="p-toast-message-content" :class="message.contentStyleClass">
|
||||
<template v-if="!template">
|
||||
<span :class="iconClass"></span>
|
||||
<div class="p-toast-message-text">
|
||||
|
@ -48,7 +48,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return ['p-toast-message', {
|
||||
return ['p-toast-message', this.message.styleClass, {
|
||||
'p-toast-message-info': this.message.severity === 'info',
|
||||
'p-toast-message-warn': this.message.severity === 'warn',
|
||||
'p-toast-message-error': this.message.severity === 'error',
|
||||
|
|
Loading…
Reference in New Issue