<template>
  <div class="container-box">
    <div class="container-left">
      <dv-border-box12 class="container-left-top">
        <LeftTop />
      </dv-border-box12>
      <dv-border-box12 class="container-left-center">
        <LeftCenter :dateArray="dateArray" />
      </dv-border-box12>
      <dv-border-box12 class="container-left-bottom">
        <LeftBottom :dateArray="dateArray" />
      </dv-border-box12>
    </div>
    <div class="container-center">
      <dv-border-box12 class="container-center-top">
        <CenterTop :dateArray="dateArray" />
      </dv-border-box12>
      <dv-border-box12 class="container-center-bottom">
        <CenterBottom :dateArray="dateArray" />
      </dv-border-box12>
    </div>
    <div class="container-right">
      <dv-border-box12 class="container-right-top">
        <RightTop />
      </dv-border-box12>
      <dv-border-box12 class="container-right-center">
        <RightCenter />
      </dv-border-box12>
      <dv-border-box12 class="container-right-bottom">
        <RightBottom />
      </dv-border-box12>
    </div>
  </div>
</template>
<script setup lang="ts">
import LeftTop from "@/views/snapshot/left-top.vue";
import LeftCenter from "@/views/snapshot/left-center.vue";
import LeftBottom from "@/views/snapshot/left-bottom.vue";
import CenterTop from "@/views/snapshot/center-top.vue";
import CenterBottom from "@/views/snapshot/center-bottom.vue";
import RightTop from "@/views/snapshot/right-top.vue";
import RightCenter from "@/views/snapshot/right-center.vue";
import RightBottom from "@/views/snapshot/right-bottom.vue";

import { BorderBox12 as DvBorderBox12 } from "@kjgl77/datav-vue3";

const props = defineProps({
  dateArray: {
    type: Array,
    default: () => [],
  },
});
</script>
<style scoped lang="scss">
.container-box {
  width: 100%;
  display: flex;
  min-height: calc(100% - 100px);
  justify-content: space-between;
  margin-top: 10px;

  .container-left,
  .container-right {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 540px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0 10px;
    .container-left-top {
      height: 150px;
    }

    .container-left-center {
      height: 320px;
    }

    .container-left-bottom {
      height: 440px;
    }
  }

  .container-center-float {
    position: absolute;
    top: 300px;
    left: 520px;
    z-index: 2;
  }

  .container-center {
    flex: 1;
    margin: 0 24px;
    .container-center-top {
      height: 540px;
      overflow: hidden;
      margin-top: 30px;
    }
    .container-center-bottom {
      height: 390px;
      overflow: hidden;
      margin-top: 30px;
    }
  }

  .container-right,
  .container-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 540px;
    box-sizing: border-box;
    flex-shrink: 0;

    .container-right-top,
    .container-right-center {
      height: 230px;
      overflow: hidden;
    }
    .container-right-bottom {
      height: 500px;
      overflow: hidden;
    }
  }
}
</style>
