<template>
  <basic-container>
    <el-card>
      <template #header>
        <div class="card-header">
          <span>首页</span>
        </div>
      </template>
      <template v-for="item in list" :key="item">
        <div class="content_item">
          <div>{{ item.content }}</div>
          <div>{{ item.overTime }}</div>
        </div>
      </template>
    </el-card>
  </basic-container>
</template>

<script setup lang="ts">
import { ref } from "vue";

const list = ref([
  {
    content: "信息",
    overTime: "时间"
  },
  {
    content: "关于调拨出库的通知....",
    overTime: "2024-03-11"
  },
  {
    content: "关于调拨出库的通知....",
    overTime: "2024-03-11"
  },
  {
    content: "关于调拨出库的通知....",
    overTime: "2024-03-11"
  },
  {
    content: "关于调拨出库的通知....",
    overTime: "2024-03-11"
  }
]);
</script>

<style lang="scss" scoped>
:deep(.el-card) {
  width: 100%;
  height: 100%;
  .card-header {
    height: 60px;
    font-size: 30px;
    line-height: 60px;
    font-weight: bolder;
  }
  .el-card__body {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    font-size: 20px;
    .content_item {
      width: 50%;
      height: 80px;
      display: flex;
      justify-content: space-between;
      &:nth-child(1) {
        font-weight: bolder;
      }
      & > div {
        min-width: 200px;
        text-align: center;
      }
    }
  }
}
</style>
