index.vue 1.1 KB

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