/** * Copyright(c) dtysky * Created: 7 Feb 2018 * Description: */ /// import {Component} from 'react'; export interface IPropTypes { view?: 'border' | 'fill'; content?: React.ReactNode; position?: 'top' | 'bottom' | 'left' | 'right'; show?: boolean; disabled?: boolean; onChange?: (show: boolean) => void; trigger?: 'hover' | 'focus' | 'click'; color?: string; className?: string; style?: any; containerStyle?: any; children?: React.ReactNode; } export interface IStateTypes { show: boolean; } export default class Tooltip extends Component { static defaultProps: IPropTypes; public state: IStateTypes; private contentStyle; private nodePreRect; private updateContentStyle; private handleOpen; private handleClose; private handleOpenWithChildren; private handleCloseWithChildren; }