From 3b9fd30846c2c43130dec826cb6b7b861f10f4d8 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Sat, 04 Feb 2023 15:19:36 +0800
Subject: [PATCH] 弹窗按钮支持禁用

---
 forms/switch/cSwitch.scss |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/forms/switch/cSwitch.scss b/forms/switch/cSwitch.scss
index dfe9673..0224cd5 100644
--- a/forms/switch/cSwitch.scss
+++ b/forms/switch/cSwitch.scss
@@ -6,6 +6,16 @@
 @import "../../common/sassMixin";
 
 .c-switch {
+    &.read-only {
+        pointer-events: none;
+        background-color: #fafafa;
+        .at-switch {
+            background-color: transparent;
+        }
+        .at-switch__container {
+            background-color: transparent;
+        }
+    }
     .at-switch__title {
         font-size: 36px;
     }

--
Gitblit v1.9.1