UNPKG

@quanxi/ui

Version:

全悉组件库

31 lines (30 loc) 1.15 kB
import { ReactNode, ReactElement, CSSProperties } from "react"; import type { AlignType } from "rc-trigger/lib/interface"; import "./style.scss"; import "./self-define.scss"; type PlacementType = "left" | "leftTop" | "leftBottom" | "top" | "topLeft" | "topRight" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight"; export interface TooltipProps { title?: string | ReactNode; content?: string | ReactNode; overlay?: (() => ReactNode) | ReactNode; zIndex?: number; placement?: PlacementType; children: ReactElement; getTooltipContainer?: (node: HTMLElement) => HTMLElement; defaultVisible?: boolean; open?: boolean; onOpenChange?: (v: boolean) => void; mouseEnterDelay?: number; mouseLeaveDelay?: number; overlayClassName?: string; overlayInnerStyle?: CSSProperties; align?: AlignType; onCancel?: () => void; onSubmit?: (...args: any[]) => any | PromiseLike<any>; showArrow?: boolean; minWidth?: boolean; okText?: string; cancelText?: string; } declare function Popconfirm(props: TooltipProps): JSX.Element; export default Popconfirm;