|
@@ -5,11 +5,11 @@
|
|
<div class="stu-answer">{{{'true': '正确', 'false' : '错误'}[studentAnswer]}}</div>
|
|
<div class="stu-answer">{{{'true': '正确', 'false' : '错误'}[studentAnswer]}}</div>
|
|
<div class="score">({{examQuestion.questionScore}}分)</div>
|
|
<div class="score">({{examQuestion.questionScore}}分)</div>
|
|
</div>
|
|
</div>
|
|
- <div @click="() => answerQuestion('true')">
|
|
|
|
|
|
+ <div @click="() => answerQuestion('true')" :class="[studentAnswer === 'true' && 'row-selected', 'option']">
|
|
<input type="radio" name="question" value="true" :checked="studentAnswer === 'true'" />
|
|
<input type="radio" name="question" value="true" :checked="studentAnswer === 'true'" />
|
|
<span class="question-options">正确</span>
|
|
<span class="question-options">正确</span>
|
|
</div>
|
|
</div>
|
|
- <div @click="() => answerQuestion('false')">
|
|
|
|
|
|
+ <div @click="() => answerQuestion('false')" :class="[studentAnswer === 'false' && 'row-selected', 'option']">
|
|
<input type="radio" name="question" value="false" :checked="studentAnswer === 'false'" />
|
|
<input type="radio" name="question" value="false" :checked="studentAnswer === 'false'" />
|
|
<span class="question-options">错误</span>
|
|
<span class="question-options">错误</span>
|
|
</div>
|
|
</div>
|
|
@@ -127,7 +127,18 @@ export default {
|
|
|
|
|
|
.option {
|
|
.option {
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.option:hover {
|
|
|
|
+ background-color: aliceblue;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.row-selected {
|
|
|
|
+ background-color: aliceblue;
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+
|
|
.question-options {
|
|
.question-options {
|
|
text-align: left;
|
|
text-align: left;
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|