primevue-mirror/components/lib/toast/BaseToast.vue

64 lines
1.3 KiB
Vue
Raw Normal View History

2023-05-25 21:53:07 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import ToastStyle from 'primevue/toast/style';
2023-05-25 21:53:07 +00:00
export default {
name: 'BaseToast',
extends: BaseComponent,
props: {
group: {
type: String,
default: null
},
position: {
type: String,
default: 'top-right'
},
autoZIndex: {
type: Boolean,
default: true
},
baseZIndex: {
type: Number,
default: 0
},
breakpoints: {
type: Object,
default: null
},
closeIcon: {
type: String,
default: undefined
},
infoIcon: {
type: String,
default: undefined
},
warnIcon: {
type: String,
default: undefined
},
errorIcon: {
type: String,
default: undefined
},
successIcon: {
type: String,
default: undefined
},
closeButtonProps: {
2024-04-15 08:08:42 +00:00
type: Object,
default: () => {
return {};
}
2023-05-25 21:53:07 +00:00
}
},
style: ToastStyle,
provide() {
return {
$parentInstance: this
};
2023-05-25 21:53:07 +00:00
}
};
</script>