<template>
  <div :class="classes">
    <h4>注意事项：</h4>
    <div v-for="(cont, index) in notices" :key="index" class="head-notice-cont">
      <span>{{ index + 1 }}、</span>
      <span>{{ cont }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "HeadNotice",
  props: {
    data: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  computed: {
    classes() {
      return [
        "head-notice",
        "card-head-body-spin",
        {
          "head-notice-exam-number-fill": this.data.examNumberStyle === "fill",
        },
      ];
    },
    notices() {
      return this.data.attention.split("\n") || [];
    },
  },
  methods: {},
};
</script>
