From 1f91057dab6127c3ac27202ebd1998e06bc9b255 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 16 Feb 2023 10:56:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(Switch):=20=E7=A6=81=E7=94=A8=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=AD=AA=E6=96=9C=EF=BC=8C=E5=B1=95=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E6=98=8E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/Switch/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/src/Switch/index.tsx b/packages/core/src/Switch/index.tsx index 25ee99e0b..18a214a5e 100644 --- a/packages/core/src/Switch/index.tsx +++ b/packages/core/src/Switch/index.tsx @@ -207,7 +207,8 @@ const styles = StyleSheet.create({ backgroundColor: '#E6E6E6', }, disabled: { - backgroundColor: 'rgba(255, 255, 255, 0.6)', + // backgroundColor: 'rgba(255, 255, 255, 0.6)', + backgroundColor: '#0001', borderRadius: 16, zIndex: 22, }, @@ -230,9 +231,10 @@ const styles = StyleSheet.create({ }, shadowDisable: { shadowColor: '#000', + background: '#0001', shadowOffset: { - width: 10, - height: 10, + width: 5, + height: 4, }, shadowOpacity: 0.3, shadowRadius: 2,