fix: Fixed the issue of carousel dot being unclickable (#55757)

This commit is contained in:
Wanpan
2025-11-18 20:57:17 +08:00
committed by GitHub
parent 7aabe2a4fa
commit 4be4ba64a5

View File

@@ -233,10 +233,10 @@ const genDotsStyle: GenerateStyle<CarouselToken> = (token) => {
const animation = new Keyframes(`${token.prefixCls}-dot-animation`, { const animation = new Keyframes(`${token.prefixCls}-dot-animation`, {
from: { from: {
transform: `translate3d(-100%, 0, 0)`, width: 0,
}, },
to: { to: {
transform: `translate3d(0%, 0, 0)`, width: token.dotActiveWidth,
}, },
}); });
@@ -284,7 +284,7 @@ const genDotsStyle: GenerateStyle<CarouselToken> = (token) => {
position: 'absolute', position: 'absolute',
top: 0, top: 0,
insetInlineStart: 0, insetInlineStart: 0,
width: '100%', width: 0,
height: dotHeight, height: dotHeight,
content: '""', content: '""',
background: 'transparent', background: 'transparent',