Skip to content

Commit b2bf550

Browse files
authored
Merge pull request #498 from nullptr-z/dev
fix(Switch): 组件禁用样式歪斜,效果不明显
2 parents 098a81e + 1f91057 commit b2bf550

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)