-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.vue
32 lines (29 loc) · 762 Bytes
/
default.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
<div class="main-layout">
<Navbar/>
<slot/>
</div>
<WidgetContainerModal/>
<VuePreloader
v-if="showPreloader"
background-color="#111827"
color="#ffffff"
transition-type="fade-down"
:loading-speed="10"
:transition-speed="500"
/>
</template>
<style lang="scss" scoped>
.main-layout {
@apply w-full min-w-96;
}
</style>
<script setup lang="ts">
import { container as WidgetContainerModal } from "jenesius-vue-modal";
import Navbar from "~/layouts/_components/Navbar.vue";
import { VuePreloader } from 'vue-preloader';
import '../node_modules/vue-preloader/dist/style.css'
import { useAppStore } from "~/stores/app";
const store = useAppStore();
const showPreloader = computed(() => store.loading);
</script>