From 55a5ba2d0f43e507e97de31a9c7c9f7e8a6f599c Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Wed, 15 Mar 2023 10:41:34 +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