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

This commit is contained in:
Dunqing 2022-12-05 15:03:59 +08:00 committed by GitHub
parent fbab5df655
commit 93c141675a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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