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, ) {