2023-05-25 13:22:28 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import MessageStyle from 'primevue/message/style';
|
2023-05-25 13:22:28 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseMessage',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
severity: {
|
|
|
|
type: String,
|
|
|
|
default: 'info'
|
|
|
|
},
|
|
|
|
closable: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
sticky: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
life: {
|
|
|
|
type: Number,
|
|
|
|
default: 3000
|
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
closeIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
closeButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: MessageStyle,
|
2023-06-02 14:28:59 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcMessage: this,
|
2023-06-02 14:28:59 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-25 13:22:28 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|