|
@@ -81,7 +81,6 @@
|
|
<div
|
|
<div
|
|
v-if="store.currentTask && store.currentTask.questionList"
|
|
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}%` }"
|
|
:style="{ height: `${topPercent}%` }"
|
|
>
|
|
>
|
|
<template
|
|
<template
|
|
@@ -133,8 +132,33 @@
|
|
background-color: grey;
|
|
background-color: grey;
|
|
cursor: row-resize;
|
|
cursor: row-resize;
|
|
"
|
|
"
|
|
- class="split-pane"
|
|
|
|
- ></div>
|
|
|
|
|
|
+ class="split-pane tw-flex tw-justify-evenly"
|
|
|
|
+ >
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ margin-top: -14px;
|
|
|
|
+ width: 20px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ clip-path: polygon(0 100%, 100% 100%, 50% 0);
|
|
|
|
+ background-color: lightskyblue;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ "
|
|
|
|
+ @click="topPercent = 20"
|
|
|
|
+ ></div>
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ margin-top: -3px;
|
|
|
|
+ width: 20px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ clip-path: polygon(0 0, 100% 0, 50% 100%);
|
|
|
|
+ background-color: lightskyblue;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ "
|
|
|
|
+ @click="topPercent = 90"
|
|
|
|
+ ></div>
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
class="tw-flex tw-flex-wrap tw-mt-5 tw-overflow-auto tw-content-start"
|
|
class="tw-flex tw-flex-wrap tw-mt-5 tw-overflow-auto tw-content-start"
|
|
style="padding-bottom: 40px; gap: 8px"
|
|
style="padding-bottom: 40px; gap: 8px"
|
|
@@ -194,6 +218,15 @@ import { addFocusTrack, removeFocusTrack } from "./use/focusTracks";
|
|
const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);
|
|
const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);
|
|
const { dragSpliter, topPercent } = dragSplitPane();
|
|
const { dragSpliter, topPercent } = dragSplitPane();
|
|
|
|
|
|
|
|
+watch(topPercent, () => {
|
|
|
|
+ if (topPercent.value <= 10) {
|
|
|
|
+ topPercent.value = 10;
|
|
|
|
+ }
|
|
|
|
+ if (topPercent.value >= 90) {
|
|
|
|
+ topPercent.value = 90;
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
+
|
|
const { chooseQuestion } = autoChooseFirstQuestion();
|
|
const { chooseQuestion } = autoChooseFirstQuestion();
|
|
|
|
|
|
// 切换题目是清空上一题的分数
|
|
// 切换题目是清空上一题的分数
|
|
@@ -423,26 +456,4 @@ const buttonHeightForSelective = $computed(() =>
|
|
background-color: #4db9ff;
|
|
background-color: #4db9ff;
|
|
border: none;
|
|
border: none;
|
|
}
|
|
}
|
|
-.split-pane::before {
|
|
|
|
- content: "";
|
|
|
|
- display: block;
|
|
|
|
- margin: 0 auto;
|
|
|
|
- margin-top: -7px;
|
|
|
|
- width: 20px;
|
|
|
|
- height: 4px;
|
|
|
|
- text-align: center;
|
|
|
|
- clip-path: polygon(0 100%, 100% 100%, 50% 0);
|
|
|
|
- background-color: lightskyblue;
|
|
|
|
-}
|
|
|
|
-.split-pane::after {
|
|
|
|
- content: "";
|
|
|
|
- display: block;
|
|
|
|
- margin: 0 auto;
|
|
|
|
- margin-top: 6px;
|
|
|
|
- width: 20px;
|
|
|
|
- height: 4px;
|
|
|
|
- text-align: center;
|
|
|
|
- clip-path: polygon(0 0, 100% 0, 50% 100%);
|
|
|
|
- background-color: lightskyblue;
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|