Skip to content

Commit 1f91057

Browse files
committed
fix(Switch): 禁用样式歪斜,展示不明显
1 parent 4a349d7 commit 1f91057

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/Switch/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ const styles = StyleSheet.create({
207207
backgroundColor: '#E6E6E6',
208208
},
209209
disabled: {
210-
backgroundColor: 'rgba(255, 255, 255, 0.6)',
210+
// backgroundColor: 'rgba(255, 255, 255, 0.6)',
211+
backgroundColor: '#0001',
211212
borderRadius: 16,
212213
zIndex: 22,
213214
},
@@ -230,9 +231,10 @@ const styles = StyleSheet.create({
230231
},
231232
shadowDisable: {
232233
shadowColor: '#000',
234+
background: '#0001',
233235
shadowOffset: {
234-
width: 10,
235-
height: 10,
236+
width: 5,
237+
height: 4,
236238
},
237239
shadowOpacity: 0.3,
238240
shadowRadius: 2,

0 commit comments

Comments
 (0)