64 lines
1.3 KiB
Vue
64 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: Object,
|
|
default: () => {
|
|
return {};
|
|
}
|
|
}
|
|
},
|
|
style: ToastStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|