UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

27 lines (26 loc) 1.25 kB
import React from 'react'; import type { TooltipWrapperProps, TooltipWrapperState } from '../types'; export declare class TooltipWrapper extends React.Component<TooltipWrapperProps, TooltipWrapperState> { static defaultProps: Pick<TooltipWrapperProps, 'placement' | 'trigger' | 'rootClose' | 'delay'>; target: HTMLElement; timer: ReturnType<typeof setTimeout>; mounted: boolean; constructor(props: TooltipWrapperProps); componentWillUnmount(): void; getTarget(): Element | Text | null; show: () => void; hide: () => void; getChildProps(): any; tooltipMouseEnter: (e: any) => void; tooltipMouseLeave: (e: any) => void; handleShow: () => void; handleHide: () => void; handleFocus: (e: any) => void; handleBlur: (e: any) => void; handleMouseOver: (e: any) => void; handleMouseOut: (e: any) => void; handleMouseOverOut: (handler: Function, e: React.MouseEvent<HTMLElement>, relatedNative: "fromElement" | "toElement") => boolean; handleClick: (e: any) => void; render(): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | (JSX.Element | null)[] | null | undefined; } export default TooltipWrapper;