<script lang="ts" setup>
import { Card, CardGrid } from 'ant-design-vue'
import { groupItems } from './data'
import { Icon } from '@/components/Icon'

const props = defineProps({
  data: {
    type: Object,
    default: () => {},
  },
})
</script>

<template>
  <Card :title="props.data.Header" v-bind="$attrs">
    <template #extra>
      <a-button type="link">
        更多
      </a-button>
    </template>

    <CardGrid v-for="item in props.data.Content" :key="item.Point" class="!h-1/3 !w-full !md:w-1/4">
      <!-- <Icon :icon="item.icon" :color="item.color" size="30" /> -->
      <div class="text-center text-lg">
        {{ item.Point }}
      </div>

      <div class="text-secondary mt-2 h-10 flex">
        {{ item.FaultDesc }}
      </div>
      <!-- <div class="text-secondary flex justify-between">
        <span>{{ item.group }}</span>
        <span>{{ item.date }}</span>
      </div> -->
    </CardGrid>
  </Card>
</template>

<style scoped>
::v-deep(.ant-card-grid) {
  padding:15px;
}

::v-deep(.ant-card-body) {
height:80%;
overflow-y: auto;

}
</style>
