amis-rpc-design/node_modules/antd/es/popconfirm/PurePanel.d.ts
2023-10-07 19:42:30 +08:00

21 lines
891 B
TypeScript

import * as React from 'react';
import type { PopconfirmProps } from '.';
export interface PopconfirmLocale {
okText: string;
cancelText: string;
}
export interface OverlayProps extends Pick<PopconfirmProps, 'icon' | 'okButtonProps' | 'cancelButtonProps' | 'cancelText' | 'okText' | 'okType' | 'showCancel' | 'title' | 'description' | 'onPopupClick'> {
prefixCls: string;
close?: Function;
onConfirm?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
onCancel?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
}
export declare const Overlay: React.FC<OverlayProps>;
export interface PurePanelProps extends Omit<OverlayProps, 'prefixCls'>, Pick<PopconfirmProps, 'placement'> {
className?: string;
style?: React.CSSProperties;
prefixCls?: string;
}
declare const PurePanel: React.FC<PurePanelProps>;
export default PurePanel;