index.vue 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div id="dashboard-container" class="dashboard-container">
  3. <HeaderSection />
  4. <div class="dashboard-content">
  5. <LeftSection />
  6. <MiddleSection />
  7. <RightSection />
  8. </div>
  9. </div>
  10. </template>
  11. <script lang="ts" setup name="videoList">
  12. import LeftSection from './LeftSection.vue';
  13. import RightSection from './RightSection/index.vue';
  14. import MiddleSection from './MiddleSection.vue';
  15. import autofit from 'autofit.js';
  16. onMounted(() => {
  17. autofit.init(
  18. {
  19. dw: 8960,
  20. dh: 2520,
  21. el: '#dashboard-container',
  22. resize: false,
  23. ignore: ['#aMap', '#YztMap', '#selectMap']
  24. },
  25. false
  26. );
  27. });
  28. onUnmounted(() => {
  29. autofit.off();
  30. });
  31. </script>
  32. <style lang="scss" scoped>
  33. .dashboard-container {
  34. //width: 100%;
  35. //height: 100vh;
  36. width: 8960px;
  37. height: 2560px;
  38. background-color: #030526;
  39. font-size: 74px;
  40. .dashboard-content {
  41. padding: 69px;
  42. display: flex;
  43. height: calc(2560px - 207px);
  44. overflow: hidden;
  45. }
  46. }
  47. </style>