primevue-mirror/components/lib/message/BaseMessage.vue

47 lines
946 B
Vue
Raw Normal View History

2023-05-25 13:22:28 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
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
}
},
style: MessageStyle,
provide() {
return {
$pcMessage: this,
$parentInstance: this
};
2023-05-25 13:22:28 +00:00
}
};
</script>