import React from 'react'; import type { Placement } from '@popperjs/core'; interface ToolTipProps { /** * 是否显示箭头 不传该属性时 移动端不显示箭头 pc端显示 */ arrow?: boolean; /** * 提示文字 */ title: string; /** * 触发事件 */ trigger?: 'hover' | 'focus' | 'click'; /** * 提示框位置 */ placement?: Placement; /** * 子元素 */ children: React.ReactElement; /** * 过渡动画 */ transitionComponent?: React.ReactType; /** * 是否是移动端 */ isMobile?: boolean; className?: string; style?: React.CSSProperties; } /** * * 信息提示组件 */ export default function Tooltip({ title, children, trigger, arrow, isMobile, transitionComponent, className, style, ...rest }: ToolTipProps): JSX.Element; export {};