import { PropsWithChildren, ReactNode } from "react"; import { ModalType } from "../Modal/modal"; export interface PopconfirmProps extends Partial { /** 由于modal有children,所以使用wrapperNode来进行传递,被包裹的元素 */ wrapperNode: ReactNode; /** 显示于包裹元素方位 */ directions?: PopDirections; /** 是否点击触发 */ click?: boolean; /** 是否hover触发*/ hover?: boolean; } export declare type PopDirections = "TL" | "TOP" | "TR" | "LT" | "LEFT" | "LB" | "BL" | "BOTTOM" | "BR" | "RT" | "RIGHT" | "RB"; declare function Popconfirm(props: PropsWithChildren): JSX.Element; declare namespace Popconfirm { var defaultProps: { directions: string; click: boolean; hover: boolean; }; } export default Popconfirm;