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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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', |
|
|
|