mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
41 lines
740 B
Vue
41 lines
740 B
Vue
|
<template>
|
||
|
<transition name="fade" mode="out-in">
|
||
|
<div v-show="show" :class="['n8n-block-ui', $style.uiBlocker]" role="dialog" :aria-hidden="true" />
|
||
|
</transition>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
type BlockUiProps = {
|
||
|
show: boolean;
|
||
|
}
|
||
|
|
||
|
const props = withDefaults(defineProps<BlockUiProps>(), {
|
||
|
show: false,
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" module>
|
||
|
.uiBlocker {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
background-color: var(--color-background-dark);
|
||
|
z-index: 10;
|
||
|
opacity: 0.6;
|
||
|
border-radius: var(--border-radius-large);
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.fade-enter-active,
|
||
|
.fade-leave-active {
|
||
|
transition: opacity 200ms;
|
||
|
}
|
||
|
.fade-enter,
|
||
|
.fade-leave-to {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
</style>
|