2023-05-25 13:22:28 +00:00
|
|
|
<script>
|
2024-06-11 12:21:12 +00:00
|
|
|
import BaseComponent from '@primevue/core/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,
|
2024-06-06 11:48:40 +00:00
|
|
|
default: false
|
2023-05-25 13:22:28 +00:00
|
|
|
},
|
|
|
|
life: {
|
|
|
|
type: Number,
|
2024-06-06 11:48:40 +00:00
|
|
|
default: null
|
2023-05-25 13:22:28 +00:00
|
|
|
},
|
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
closeIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
closeButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
2024-10-26 13:04:04 +00:00
|
|
|
},
|
|
|
|
size: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
2023-05-25 13:22:28 +00:00
|
|
|
}
|
|
|
|
},
|
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>
|