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

<script>
export default {
  name: 'DutyInfo',
  props: {
    dutyData: {
      type: Array,
      default: () => [
        { label: '值班领导', value: '李凯' },
        { label: '安全板块', value: '李凯' },
        { label: '服务板块', value: '李凯' },
        { label: '运行板块', value: '李凯' },
        { label: '备勤值班', value: '李凯' }
      ]
    }
  }
}
</script>

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

.duty-item {
  display: flex;
  justify-content: space-between;
  
  .duty-label {
    font-size: 24rpx;
    color: rgba(255, 255, 255, 0.5);
  }
  
  .duty-value {
    font-size: 24rpx;
    color: rgba(255, 255, 255, 0.9);
  }
}
</style>