From 1a20a2c7a9e1ba9a0ffb83fb3d09ee7215d260c4 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 19 六月 2024 09:55:24 +0800
Subject: [PATCH] chore(考试store):简化数据获取
---
src/components/ExamInfo/index.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/components/ExamInfo/index.vue b/src/components/ExamInfo/index.vue
index f768c33..8fd4032 100644
--- a/src/components/ExamInfo/index.vue
+++ b/src/components/ExamInfo/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="info-container w-full">
<div class="exam-title break-all mb-4 text-base text-gray-700">
- 1.娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯
+ {{ title }}
</div>
<div class="img-container flex">
<div class="img-item">
@@ -12,11 +12,20 @@
</template>
<script setup>
-
+const props = defineProps({
+ questionIndex: {
+ type: Number,
+ required: true
+ },
+ title: {
+ type: String,
+ required: true
+ }
+})
</script>
<style lang="scss" scoped>
.img-item {
- max-width: 500px;
+ max-width: 400px;
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0