primevue-mirror/packages/primevue/src/message/BaseMessage.vue

51 lines
1.0 KiB
Vue
Raw Normal View History

2023-05-25 13:22:28 +00:00
<script>
2024-06-11 12:21:12 +00:00
import BaseComponent from '@primevue/core/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: false
2023-05-25 13:22:28 +00:00
},
life: {
type: Number,
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
}
},
style: MessageStyle,
provide() {
return {
$pcMessage: this,
$parentInstance: this
};
2023-05-25 13:22:28 +00:00
}
};
</script>