<template>
  <div class="attendance-grid">
    <div v-for="(item, index) in attendanceData" :key="index" class="attendance-item">
      <div class="attendance-number">{{ item.number }}</div>
      <div class="attendance-label">{{ item.label }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AttendanceStatus',
  props: {
    attendanceData: {
      type: Array,
      default: () => [
        { number: '120', label: '主班在岗 | 旅检一部' },
        { number: '130', label: '主班在岗 | 旅检二部' },
        { number: '150', label: '主班在岗 | 旅检三部' },
        { number: '80', label: '备勤在岗 | 旅检一部' },
        { number: '70', label: '备勤在岗 | 旅检二部' },
        { number: '65', label: '备勤在岗 | 旅检三部' }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24rpx;
}

.attendance-item {
  text-align: center;
  
  .attendance-number {
    font-size: 48rpx;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
  }
  
  .attendance-label {
    margin-top: 8rpx;
    font-size: 20rpx;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
  }
}
</style>