2023-05-24 14:56:02 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
import { useStyle } from 'primevue/usestyle';
|
|
|
|
|
|
|
|
const styles = `
|
2023-09-25 19:11:55 +00:00
|
|
|
@layer primevue {
|
|
|
|
.p-blockui-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-blockui.p-component-overlay {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-blockui-document.p-component-overlay {
|
|
|
|
position: fixed;
|
|
|
|
}
|
2023-05-24 14:56:02 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: 'p-blockui-container'
|
|
|
|
};
|
|
|
|
|
2023-07-03 22:20:35 +00:00
|
|
|
const { load: loadStyle } = useStyle(styles, { name: 'blockui', manual: true });
|
2023-05-24 14:56:02 +00:00
|
|
|
|
|
|
|
export default {
|
2023-06-09 08:30:38 +00:00
|
|
|
name: 'BaseBlockUI',
|
2023-05-24 14:56:02 +00:00
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
blocked: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
fullScreen: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
baseZIndex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
autoZIndex: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
css: {
|
2023-05-30 12:28:04 +00:00
|
|
|
classes,
|
|
|
|
loadStyle
|
2023-05-24 14:56:02 +00:00
|
|
|
},
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-24 14:56:02 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|