vben
authored
5 years ago
1
<template>
Vben
authored
4 years ago
2
3
4
<div class="p-4">
<GrowCard :loading="loading" class="enter-y" />
<SiteAnalysis class="!my-4 enter-y" :loading="loading" />
vben
authored
5 years ago
5
Vben
authored
4 years ago
6
7
8
9
10
11
<div class="md:flex enter-y">
<VisitRadar class="md:w-1/3 w-full" :loading="loading" />
<VisitSource class="md:w-1/3 !md:mx-4 !md:my-0 !my-4 w-full" :loading="loading" />
<SalesProductPie class="md:w-1/3 w-full" :loading="loading" />
</div>
vben
authored
5 years ago
12
13
14
</div>
</template>
<script lang="ts">
Vben
authored
4 years ago
15
import { defineComponent, ref } from 'vue';
vben
authored
5 years ago
16
import GrowCard from './components/GrowCard.vue';
Vben
authored
4 years ago
17
18
19
20
21
import SiteAnalysis from './components/SiteAnalysis.vue';
import VisitSource from './components/VisitSource.vue';
import VisitRadar from './components/VisitRadar.vue';
import SalesProductPie from './components/SalesProductPie.vue';
vben
authored
5 years ago
22
23
24
export default defineComponent({
components: {
GrowCard,
Vben
authored
4 years ago
25
26
27
28
SiteAnalysis,
VisitRadar,
VisitSource,
SalesProductPie,
vben
authored
5 years ago
29
30
},
setup() {
Vben
authored
4 years ago
31
32
33
34
35
36
const loading = ref(true);
setTimeout(() => {
loading.value = false;
}, 1500);
return { loading };
vben
authored
5 years ago
37
38
39
},
});
</script>