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

63 lines
1.3 KiB
Vue

<script>
import BaseComponent from 'primevue/basecomponent';
import ToastStyle from 'primevue/toast/style';
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: {
type: null,
default: null
}
},
style: ToastStyle,
provide() {
return {
$pcToast: this,
$parentInstance: this
};
}
};
</script>