UNPKG

adui

Version:

<div> <img src="https://wxa.wxs.qq.com/mpweb/delivery/legacy/wxadtouch/upload/t1/od834zef_52939fc6.png" style="margin:40px 0 0 -8px; background-color: #fcfcfc; box-shadow: none;" /> </div>

22 lines (21 loc) 838 B
import React from "react"; import { IButtonProps } from "../button/Button"; import { IPopoverProps } from "../popover"; import "./style"; interface IVisibleOptions { target?: "cancel" | "confirm"; } export interface IPopconfirmProps extends Omit<IPopoverProps, "onVisibleChange"> { cancelButton?: IButtonProps; cancelText?: React.ReactNode; confirmButton?: IButtonProps; confirmText?: React.ReactNode; onCancel?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void; onConfirm?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void; onVisibleChange?: (visible: boolean, options: IVisibleOptions) => void; } /** * 弹出式面板组件。 */ declare const Popconfirm: React.ForwardRefExoticComponent<IPopconfirmProps & React.RefAttributes<any>>; export default Popconfirm;