1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <div :class="classes">
- <h4>注意事项:</h4>
- <div class="head-notice-cont" v-for="(cont, index) in notices" :key="index">
- <span>{{ index + 1 }}、</span>
- <span>{{ cont }}</span>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "head-notice",
- props: {
- data: {
- type: Object,
- },
- },
- 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>
|