mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Update #3965 - For Toast
This commit is contained in:
parent
36c5fc3e7b
commit
ded7a0dc06
3 changed files with 62 additions and 76 deletions
|
@ -19,7 +19,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import BaseToastMessage from './BaseToastMessage.vue';
|
||||
import BaseToast from './BaseToast.vue';
|
||||
import CheckIcon from 'primevue/icons/check';
|
||||
import ExclamationTriangleIcon from 'primevue/icons/exclamationtriangle';
|
||||
import InfoCircleIcon from 'primevue/icons/infocircle';
|
||||
|
@ -29,9 +29,43 @@ import Ripple from 'primevue/ripple';
|
|||
|
||||
export default {
|
||||
name: 'ToastMessage',
|
||||
extends: BaseToastMessage,
|
||||
extends: BaseToast,
|
||||
emits: ['close'],
|
||||
closeTimeout: null,
|
||||
props: {
|
||||
message: {
|
||||
type: null,
|
||||
default: null
|
||||
},
|
||||
templates: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
closeIcon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
infoIcon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
warnIcon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
errorIcon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
successIcon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
closeButtonProps: {
|
||||
type: null,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.message.life) {
|
||||
this.closeTimeout = setTimeout(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue