Browse Source

fix(switch): only one of the two props `checkedChildren` or `unCheckedChildren` will not work (#39262)

pull/39266/head
Dunqing 2 years ago
committed by GitHub
parent
commit
93c141675a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/switch/style/index.tsx

1
components/switch/style/index.tsx

@ -182,6 +182,7 @@ const genSwitchInnerStyle: GenerateStyle<SwitchToken, CSSObject> = (token) => {
display: 'block',
overflow: 'hidden',
borderRadius: 100,
height: '100%',
[`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {
display: 'block',

Loading…
Cancel
Save