浏览代码

Update MCalendar.vue

lex-xin 5 年之前
父节点
当前提交
aafc80eb6d
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/components/MCalendar.vue

+ 9 - 3
src/components/MCalendar.vue

@@ -485,9 +485,6 @@ export default {
             border-radius: 50%;
             line-height: .36rem;
             font-weight: 500;
-            &.disabled { // 如果不是当月则不显示
-                color: transparent !important;
-            }
             &.noCheck {
                 color: #ccc;
             }
@@ -509,6 +506,15 @@ export default {
                 color: @whiteColor;
                 transition: all .2s ease;
             }
+            &.disabled { // 如果不是当月则不显示
+                color: transparent !important;
+                background: #fff !important;
+                &::before {
+                    content: '';
+                    color: #fff;
+                    border: 1px solid #fff;
+                }
+            }
         }
     }