HeadNotice.vue 706 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div :class="classes">
  3. <h4>注意事项:</h4>
  4. <div class="head-notice-cont" v-for="(cont, index) in notices" :key="index">
  5. <span>{{ index + 1 }}、</span>
  6. <span>{{ cont }}</span>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "head-notice",
  13. props: {
  14. data: {
  15. type: Object,
  16. },
  17. },
  18. data() {
  19. return {};
  20. },
  21. computed: {
  22. classes() {
  23. return [
  24. "head-notice",
  25. "card-head-body-spin",
  26. {
  27. "head-notice-exam-number-fill": this.data.examNumberStyle === "fill",
  28. },
  29. ];
  30. },
  31. notices() {
  32. return this.data.attention.split("\n") || [];
  33. },
  34. },
  35. methods: {},
  36. };
  37. </script>