Преглед изворни кода

样式优化:试题编辑输入框宽度调整优化

dengshaobo пре 3 недеља
родитељ
комит
5c1e7c6016
2 измењених фајлова са 16 додато и 13 уклоњено
  1. 13 13
      src/styles/common.scss
  2. 3 0
      src/views/exam/components/EditorQuestion.vue

+ 13 - 13
src/styles/common.scss

@@ -6196,20 +6196,20 @@ body {
       margin-top: 16px;
       margin-bottom: 10px;
 
-      .el-input {
-        width: 52px !important;
-        height: 30x !important;
-        padding: 0px !important;
-        // margin-left: 5px;
-        margin-right: 5px;
-      }
+      
+
+       .radio_score 
+       {
+        
+          width: 52px !important;
+          height: 30x !important;
+          padding: 0px !important;
+          // margin-left: 5px;
+          margin-right: 5px;
+        
+       }
+
 
-      .el-input__inner {
-        width: 52px !important;
-        height: 30px !important;
-        padding: 0px !important;
-        text-align: center;
-      }
 
       .el-radio__input.is-checked+.el-radio__label {
         font-weight: 400;

+ 3 - 0
src/views/exam/components/EditorQuestion.vue

@@ -81,18 +81,21 @@
                             <span class="radio_title">给分规则2:</span>全对得满分,选对1个
                             <el-input 
                                 v-model="ruleTwoScore1" 
+                                class="radio_score" 
                                 @input="ScoreChange('ruleTwoScore1')" 
                                 maxlength="3"
                             ></el-input>分,
                             选对2个
                             <el-input 
                                 v-model="ruleTwoScore2" 
+                                class="radio_score" 
                                 @input="ScoreChange('ruleTwoScore2')" 
                                 maxlength="3"
                             ></el-input>分,
                             选对3个
                             <el-input 
                                 v-model="ruleTwoScore3" 
+                                class="radio_score" 
                                 @input="ScoreChange('ruleTwoScore3')" 
                                 maxlength="3"
                             ></el-input>分,选错不得分