zhangjie 1 vuosi sitten
vanhempi
commit
37ddaf7cd0
2 muutettua tiedostoa jossa 12 lisäystä ja 4 poistoa
  1. 5 3
      src/features/mark/MarkBoardKeyBoard.vue
  2. 7 1
      src/styles/page.less

+ 5 - 3
src/features/mark/MarkBoardKeyBoard.vue

@@ -87,9 +87,11 @@
                 <span
                   :key="store.currentTask?.markResult?.scoreList[index] || 0"
                 >
-                  <!-- 特殊的空格符号 -->
-                  <!-- eslint-disable-next-line no-irregular-whitespace -->
-                  {{ store.currentTask?.markResult?.scoreList[index] ?? " " }}
+                  {{
+                    isCurrentQuestion(question)
+                      ? scoreStr
+                      : store.currentTask?.markResult?.scoreList[index]
+                  }}
                 </span>
               </transition-group>
             </div>

+ 7 - 1
src/styles/page.less

@@ -575,7 +575,8 @@
       .flex-static;
       margin-left: 10px;
       height: 36px;
-      width: 42px;
+      min-width: 42px;
+      max-width: 70px;
       text-align: center;
       background: #f7f7f7;
       border-radius: 3px;
@@ -584,6 +585,11 @@
       color: #165dff;
       font-size: 20px;
       font-weight: 600;
+      padding: 0 5px;
+      > span {
+        display: block;
+        overflow: hidden;
+      }
     }
 
     &.is-current,