From eaad22d9dae9a952f0474ca0a01bfeef570a96a0 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Fri, 07 Apr 2023 11:45:44 +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