From f83c588b551f6336c3aec9b2afb1027dbe0c3af9 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Tue, 8 Oct 2024 17:56:12 +0800 Subject: [PATCH] type(slider): improve eventName type (#51156) --- components/slider/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/slider/index.tsx b/components/slider/index.tsx index 39a3d2ad5c..8ba9442258 100644 --- a/components/slider/index.tsx +++ b/components/slider/index.tsx @@ -267,7 +267,7 @@ const Slider = React.forwardRef const nodeProps = node.props; function proxyEvent( - eventName: string, + eventName: keyof React.DOMAttributes, event: React.SyntheticEvent, triggerRestPropsEvent?: boolean, ) {