46 lines
916 B
Vue
46 lines
916 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import MessageStyle from 'primevue/message/style';
|
|
|
|
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
|
|
}
|
|
},
|
|
style: MessageStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|