Răsfoiți Sursa

样式优化

刘洋 1 an în urmă
părinte
comite
483f3ff451

+ 3 - 0
src/modules/questions/views/CheckDuplicateInfo.vue

@@ -37,6 +37,9 @@
         <QuestionInfo
         <QuestionInfo
           :question="curQuestion"
           :question="curQuestion"
           style="height: 100%"
           style="height: 100%"
+          @delete="deleteQues"
+          @ignore="ignore"
+          @retain="retain"
         ></QuestionInfo>
         ></QuestionInfo>
       </el-col>
       </el-col>
       <el-col :span="12">
       <el-col :span="12">

+ 17 - 3
src/modules/questions/views/QuestionInfo.vue

@@ -144,9 +144,19 @@
           justify-content: flex-end;
           justify-content: flex-end;
         "
         "
       >
       >
-        <el-button type="danger" icon="el-icon-delete"></el-button>
-        <el-button type="primary" plain class="maintain">跳过</el-button>
-        <el-button type="primary">保留</el-button>
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          @click="$emit('delete')"
+        ></el-button>
+        <el-button
+          type="primary"
+          plain
+          class="maintain"
+          @click="$emit('ignore')"
+          >跳过</el-button
+        >
+        <el-button type="primary" @click="$emit('retain')">保留</el-button>
       </div>
       </div>
       <div v-else style="padding-top: 10px; text-align: right">
       <div v-else style="padding-top: 10px; text-align: right">
         <slot />
         <slot />
@@ -242,6 +252,10 @@ export default {
           padding: 10px;
           padding: 10px;
           border-bottom: 1px solid #e5e5e5;
           border-bottom: 1px solid #e5e5e5;
           border-right: 1px solid #e5e5e5;
           border-right: 1px solid #e5e5e5;
+          :deep(img) {
+            max-height: 40px;
+            width: auto !important;
+          }
           &:first-child {
           &:first-child {
             background: #f7f7f7;
             background: #f7f7f7;
             display: flex;
             display: flex;