Explorar o código

弹窗取消按钮样式修改

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
ef7b715ef4

+ 2 - 1
src/components/icss/AddMedicinePrompt.vue

@@ -218,6 +218,7 @@
         this.$confirm(msg, '提示', {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
+          cancelButtonClass:'cancel',
           type: 'warning'
         }).then(() => {
           resolve();
@@ -249,7 +250,7 @@
         margin-bottom: 20px;
     }
     }
-    .el-message-box__btns button:nth-child(1) span{
+    .cancel span{
         color: #22ccc8;
     }
     .line{

+ 1 - 0
src/components/icss/MedicinePrompt.vue

@@ -188,6 +188,7 @@
         this.$confirm(msg, '提示', {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
+          cancelButtonClass:'cancel',
           type: 'warning'
         }).then(() => {
           resolve();