zhouna 4 anni fa
parent
commit
bb927d7a45
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      src/components/knowledgeExtra/SubRulesGroup.vue

+ 6 - 1
src/components/knowledgeExtra/SubRulesGroup.vue

@@ -14,7 +14,7 @@
                        @delRule="delRule"></SubConditions>
         <div class="group-oper">
             <el-button size="small" @click="addGroup">+新增分组</el-button>
-            <el-button :class="isLast?'disable':''" :disabled="isLast" size="small" type="danger" plain @click="delGroup">-删除分组</el-button>
+            <el-button :disabled="isLast" size="small" type="danger" plain @click="delGroup">-删除分组</el-button>
         </div>
     </div>
 </template>
@@ -105,5 +105,10 @@
     .el-button--danger.is-plain{
         background: none;
         color: #F56C6C;
+        &.is-disabled{
+            color: #f9a7a7;
+            background-color: #fef0f0;
+            border-color: #fde2e2;
+        }
     }
 </style>