|
@@ -12,11 +12,14 @@
|
|
|
|
|
|
<ul class="option-list">
|
|
|
<li
|
|
|
- v-for="{ content, mark } in data.option_list"
|
|
|
+ v-for="({ content, mark }, i) in data.option_list"
|
|
|
:key="mark"
|
|
|
:class="['option-item', { active: isAnswer(mark) }]"
|
|
|
>
|
|
|
- <div class="option-content" v-html="sanitizeHTML(content)"></div>
|
|
|
+ <div class="option-content">
|
|
|
+ <span class="serial-number">{{ computedQuestionNumber(i, data.option_number_show_mode) }}.</span>
|
|
|
+ <div v-html="sanitizeHTML(content)"></div>
|
|
|
+ </div>
|
|
|
<div class="option-type">
|
|
|
<div
|
|
|
v-for="option_type in data.property.option_type_list"
|
|
@@ -41,6 +44,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { option_type_list } from '@/views/exercise_questions/data/judge';
|
|
|
+import { computedQuestionNumber } from '@/views/exercise_questions/data/common';
|
|
|
|
|
|
import PreviewMixin from './components/PreviewMixin';
|
|
|
|
|
@@ -49,6 +53,7 @@ export default {
|
|
|
mixins: [PreviewMixin],
|
|
|
data() {
|
|
|
return {
|
|
|
+ computedQuestionNumber,
|
|
|
option_type_list,
|
|
|
};
|
|
|
},
|
|
@@ -85,11 +90,17 @@ export default {
|
|
|
column-gap: 16px;
|
|
|
|
|
|
.option-content {
|
|
|
+ display: flex;
|
|
|
flex: 1;
|
|
|
+ column-gap: 24px;
|
|
|
+ align-items: center;
|
|
|
padding: 12px 24px;
|
|
|
- color: #706f78;
|
|
|
background-color: $content-color;
|
|
|
border-radius: 40px;
|
|
|
+
|
|
|
+ .serial-number {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.option-type {
|
|
@@ -110,7 +121,7 @@ export default {
|
|
|
|
|
|
&.active {
|
|
|
color: #fff;
|
|
|
- background-color: #504f57;
|
|
|
+ background-color: $light-main-color;
|
|
|
}
|
|
|
}
|
|
|
}
|