fuliqi
2024-08-15 02b9931c5e3a54d69d4d20a9dc6aad141fc35141
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
  <div class="info-container w-full">
    <div class="exam-title break-all mb-4 text-base text-gray-700" v-html="activeQuestion.title">
    </div>
 
    <div class="audio-container" v-if="activeQuestion.audioFile">
      <ExamAudio :audioSrc="'/api/files/' +activeQuestion.audioFile"></ExamAudio>
    </div>
 
    <div class="img-container flex" v-if="activeQuestion.img">
      <div class="img-item">
        <img :src="activeQuestion.img" class="info-img" alt="">
      </div>
    </div>
  </div>
</template>
 
<script setup>
import ExamAudio from '@/components/ExamAudio/index.vue';
 
const props = defineProps({
  questionIndex: {
    type: Number,
    required: true
  },
  activeQuestion: {
    type: Object,
    required: true
  }
})
</script>
 
<style lang="scss" scoped>
.info-img {
  max-height: 250px;
  margin: 20px 10px;
}
.exam-title {
  :deep(p) {
    display: flex !important;
  }
}
 
</style>