From 0abe6710787db01e55ad78f8d82682de7acd2fa2 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 09 Jan 2023 19:54:04 +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