|
@@ -15,7 +15,7 @@
|
|
/>
|
|
/>
|
|
总分
|
|
总分
|
|
</div>
|
|
</div>
|
|
- <div class="total-score tw-ml-5 tw-font-bold">
|
|
|
|
|
|
+ <div class="total-score tw-ml-5 tw-font-bold" style="height: 50px">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<span
|
|
<span
|
|
:key="store.currentTask?.markResult.markerScore || 0"
|
|
:key="store.currentTask?.markResult.markerScore || 0"
|
|
@@ -107,16 +107,19 @@
|
|
question.subNumber
|
|
question.subNumber
|
|
}}
|
|
}}
|
|
</div>
|
|
</div>
|
|
- <transition-group name="score-number-animation" tag="span">
|
|
|
|
- <span
|
|
|
|
- :key="store.currentTask.markResult.scoreList[index] || 0"
|
|
|
|
- class="tw-font-medium tw-text-2xl score tw-inline-block"
|
|
|
|
- >
|
|
|
|
- <!-- 特殊的空格符号 -->
|
|
|
|
- <!-- eslint-disable-next-line no-irregular-whitespace -->
|
|
|
|
- {{ store.currentTask.markResult.scoreList[index] ?? " " }}
|
|
|
|
- </span>
|
|
|
|
- </transition-group>
|
|
|
|
|
|
+ <!-- 设置高度 避免动画跳动 -->
|
|
|
|
+ <div style="height: 32px">
|
|
|
|
+ <transition-group name="score-number-animation" tag="span">
|
|
|
|
+ <span
|
|
|
|
+ :key="store.currentTask.markResult.scoreList[index] || 0"
|
|
|
|
+ class="tw-font-medium tw-text-2xl score tw-inline-block"
|
|
|
|
+ >
|
|
|
|
+ <!-- 特殊的空格符号 -->
|
|
|
|
+ <!-- eslint-disable-next-line no-irregular-whitespace -->
|
|
|
|
+ {{ store.currentTask.markResult.scoreList[index] ?? " " }}
|
|
|
|
+ </span>
|
|
|
|
+ </transition-group>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|