From 1aea60d64276ab2b960e21ca3fc5716ff89dc7fe Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Thu, 30 Mar 2023 18:00:41 +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