index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <FooterSection style="position: absolute; bottom: 0; left: 0" />
  10. </div>
  11. </template>
  12. <script lang="ts" setup>
  13. import LeftSection from './LeftSection/index.vue';
  14. import RightSection from './RightSection/index.vue';
  15. import MiddleSection from './MiddleSection.vue';
  16. import autofit from 'autofit.js';
  17. onMounted(() => {
  18. autofit.init(
  19. {
  20. dw: 8960,
  21. dh: 2520,
  22. el: '#dashboard-container',
  23. resize: false,
  24. ignore: ['#aMap', '#YztMap']
  25. },
  26. false
  27. );
  28. });
  29. onUnmounted(() => {
  30. autofit.off();
  31. });
  32. </script>
  33. <style lang="scss" scoped>
  34. .dashboard-container {
  35. width: 8960px;
  36. height: 2560px;
  37. font-size: 74px;
  38. background: url('@/assets/images/bg.jpg') no-repeat 100% 100%;
  39. background-size: cover;
  40. font-family: 'PingFang SC', sans-serif;
  41. position: relative;
  42. .dashboard-content {
  43. padding: 0 81px;
  44. display: flex;
  45. height: calc(2560px - 228px - 150px);
  46. overflow: hidden;
  47. }
  48. }
  49. </style>