|
@@ -239,10 +239,10 @@ const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);
|
|
|
const { dragSpliter, topPercent } = dragSplitPane();
|
|
|
|
|
|
watch(topPercent, () => {
|
|
|
- if (topPercent.value <= 10) {
|
|
|
+ if (topPercent.value < 10) {
|
|
|
topPercent.value = 10;
|
|
|
}
|
|
|
- if (topPercent.value >= 90) {
|
|
|
+ if (topPercent.value > 90) {
|
|
|
topPercent.value = 90;
|
|
|
}
|
|
|
});
|
|
@@ -268,10 +268,14 @@ const questionScoreSteps = $computed(() => {
|
|
|
|
|
|
const remainScore =
|
|
|
Math.round(question.maxScore * 100 - (questionScore || 0) * 100) / 100;
|
|
|
+
|
|
|
const steps = [];
|
|
|
+ if (question.intervalScore <= 0) {
|
|
|
+ console.warn(`question.intervalScore got: ${question.intervalScore}`);
|
|
|
+ }
|
|
|
for (
|
|
|
let i = 0;
|
|
|
- i <= remainScore;
|
|
|
+ i <= remainScore && question.intervalScore > 0;
|
|
|
i = Math.round(i * 100 + question.intervalScore * 100) / 100
|
|
|
) {
|
|
|
steps.push(i);
|