ZhangXianQiang
2024-06-20 1f33c401da7a7a7b67222af7400dba66d65b6a9a
src/components/ExamInfo/index.vue
@@ -1,8 +1,13 @@
<template>
  <div class="info-container w-full">
    <div class="exam-title break-all mb-4 text-base text-gray-700">
      {{ title }}
      第{{questionIndex + 1}}题: {{ activeQuestion.title }}
    </div>
    <div class="audio-container" v-if="activeQuestion.audioFile">
      <ExamAudio :audioSrc="activeQuestion.audioFile"></ExamAudio>
    </div>
    <div class="img-container flex">
      <div class="img-item">
        <img src="@/assets/test.png" class="info-img" alt="">
@@ -12,13 +17,15 @@
</template>
<script setup>
import ExamAudio from '@/components/ExamAudio/index.vue';
const props = defineProps({
  questionIndex: {
    type: Number,
    required: true
  },
  title: {
    type: String,
  activeQuestion: {
    type: Object,
    required: true
  }
})
@@ -27,6 +34,6 @@
<style lang="scss" scoped>
.info-img {
  max-height: 250px;
  margin: 20px 0;
  margin: 20px 10px;
}
</style>