|
@@ -5,11 +5,7 @@
|
|
|
:class="[store.isScoreBoardCollapsed ? 'hide' : 'show']"
|
|
|
>
|
|
|
<div
|
|
|
- class="
|
|
|
- tw-flex tw-rounded tw-justify-between tw-p-2 tw-pl-5
|
|
|
- top-container
|
|
|
- tw-mb-4
|
|
|
- "
|
|
|
+ class="tw-flex tw-rounded tw-justify-between tw-p-2 tw-pl-5 top-container tw-mb-4"
|
|
|
>
|
|
|
<div class="tw-flex tw-flex-col">
|
|
|
<div class="tw-flex tw-items-center tw-gap-2">
|
|
@@ -20,7 +16,13 @@
|
|
|
总分
|
|
|
</div>
|
|
|
<div class="total-score tw-ml-5 tw-font-bold">
|
|
|
- {{ store.currentTask?.markResult.markerScore }}
|
|
|
+ <transition-group name="score-number-animation" tag="span">
|
|
|
+ <span
|
|
|
+ :key="store.currentTask?.markResult.markerScore || 0"
|
|
|
+ class="tw-inline-block"
|
|
|
+ >{{ store.currentTask?.markResult.markerScore }}</span
|
|
|
+ >
|
|
|
+ </transition-group>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -78,14 +80,7 @@
|
|
|
>
|
|
|
<div
|
|
|
v-if="store.currentTask && store.currentTask.questionList"
|
|
|
- class="
|
|
|
- tw-flex
|
|
|
- tw-gap-2
|
|
|
- tw-flex-wrap
|
|
|
- tw-justify-between
|
|
|
- tw-overflow-auto
|
|
|
- tw-content-start
|
|
|
- "
|
|
|
+ class="tw-flex tw-gap-2 tw-flex-wrap tw-justify-between tw-overflow-auto tw-content-start"
|
|
|
style="min-height: 20% !important; max-height: 80% !important"
|
|
|
:style="{ height: `${topPercent}%` }"
|
|
|
>
|
|
@@ -107,11 +102,16 @@
|
|
|
question.subNumber
|
|
|
}}
|
|
|
</div>
|
|
|
- <div class="tw-font-medium tw-text-2xl score">
|
|
|
- <!-- 特殊的空格符号 -->
|
|
|
- <!-- eslint-disable-next-line no-irregular-whitespace -->
|
|
|
- {{ store.currentTask.markResult.scoreList[index] ?? " " }}
|
|
|
- </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>
|
|
|
</template>
|
|
|
</div>
|