diff --git a/components/slider/SliderTooltip.tsx b/components/slider/SliderTooltip.tsx index 5cd2a104f3..0cbbc92f2c 100644 --- a/components/slider/SliderTooltip.tsx +++ b/components/slider/SliderTooltip.tsx @@ -1,3 +1,4 @@ +import type { SliderRef } from 'rc-slider/lib/Slider'; import raf from 'rc-util/lib/raf'; import { composeRef } from 'rc-util/lib/ref'; import * as React from 'react'; @@ -5,7 +6,7 @@ import { useRef } from 'react'; import type { TooltipProps } from '../tooltip'; import Tooltip from '../tooltip'; -const SliderTooltip = React.forwardRef((props, ref) => { +const SliderTooltip = React.forwardRef((props, ref) => { const { open } = props; const innerRef = useRef(null); @@ -36,4 +37,8 @@ const SliderTooltip = React.forwardRef((props, ref) => { return ; }); +if (process.env.NODE_ENV !== 'production') { + SliderTooltip.displayName = 'SliderTooltip'; +} + export default SliderTooltip;