From 363145d7531cc97f842d5b7a4e520ac870737065 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Fri, 31 Mar 2023 15:21:56 +0800
Subject: [PATCH] 调整跨端通讯接收中心,提取部分公共代码到基类

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

diff --git a/forms/switch/cSwitch.scss b/forms/switch/cSwitch.scss
index a36b56f..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;
     }
@@ -76,7 +86,7 @@
     }
     &.c-switch-radio-left {
         .c-switch-radio-group {
-            width: 538px;
+            width: calc(100% - 214px);
             padding-right: 0;
             .c-switch-radio-item {
                 padding-left: 0;

--
Gitblit v1.9.1