浏览代码

解决题卡缺考标记显示bug

zhangjie 4 年之前
父节点
当前提交
a92501a519

+ 10 - 0
src/assets/styles/card-preview.scss

@@ -608,6 +608,16 @@
                 margin-right: 0;
               }
 
+              &:nth-of-type(1) {
+                &::before {
+                  content: "√";
+                }
+              }
+              &:nth-of-type(2) {
+                &::before {
+                  content: "×";
+                }
+              }
               &:nth-of-type(3) {
                 &::before {
                   content: "";

+ 4 - 3
src/modules/card/components/elementEdit/cardHeadSpin/HeadDynamic.vue

@@ -29,9 +29,10 @@
           <p><span>正确填涂:</span><i></i></p>
           <p>
             <span>错误填涂:</span>
-            <i><i class="el-icon-check"></i></i>
-            <i><i class="el-icon-close"></i></i>
-            <i></i><i></i>
+            <i></i>
+            <i></i>
+            <i></i>
+            <i></i>
           </p>
         </div>
       </div>

+ 6 - 0
src/modules/card/previewTemp.js

@@ -651,6 +651,12 @@ const css =
   .card-head-body .head-dynamic-fill p:last-child > i:last-child {\
     margin-right: 0;\
   }\
+  .card-head-body .head-dynamic-fill p:last-child > i:nth-of-type(1)::before {\
+    content: "√";\
+  }\
+  .card-head-body .head-dynamic-fill p:last-child > i:nth-of-type(2)::before {\
+    content: "×";\
+  }\
   .card-head-body .head-dynamic-fill p:last-child > i:nth-of-type(3)::before {\
     content: "";\
     display: inline-block;\