fix(SliderTooltipProps): extends from SliderTooltipProps (#44656)

This commit is contained in:
Adrián Salgado 2023-10-07 06:14:30 +02:00 committed by GitHub
parent abba072bd5
commit fc2b4af8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import type { SliderRef } from 'rc-slider/lib/Slider';
import { devUseWarning } from '../_util/warning';
import { ConfigContext } from '../config-provider';
import DisabledContext from '../config-provider/DisabledContext';
import type { TooltipPlacement } from '../tooltip';
import type { AbstractTooltipProps, TooltipPlacement } from '../tooltip';
import SliderTooltip from './SliderTooltip';
import useStyle from './style';
@ -28,7 +28,7 @@ export type HandleGeneratorFn = (config: {
export type Formatter = (value?: number) => React.ReactNode;
const defaultFormatter: Formatter = (val) => (typeof val === 'number' ? val.toString() : '');
export interface SliderTooltipProps {
export interface SliderTooltipProps extends AbstractTooltipProps {
prefixCls?: string;
open?: boolean;
placement?: TooltipPlacement;