/** * @file Tooltip组件 * @author huoyuxuan * */ import React from 'react'; import {Tooltip as AntdTooltip} from 'antd'; import { TooltipProps as AntdTooltipProps, TooltipPropsWithTitle as AntdTooltipPropsWithTitle, TooltipPropsWithOverlay as AntdTooltipPropsWithOverlay, TooltipRef, } from 'antd/es/tooltip'; import classNames from 'classnames'; import './index.less'; const clsPrefix = 'osui-tooltip'; export type TooltipProps = AntdTooltipProps; // eslint-disable-next-line max-len export type TooltipInterface = React.ForwardRefExoticComponent<(AntdTooltipPropsWithTitle & React.RefAttributes) | (AntdTooltipPropsWithOverlay & React.RefAttributes)>; const OSUITooltip = React.forwardRef(({overlayClassName, ...props}, ref) => { return ( ); }) as TooltipInterface; export default OSUITooltip;