import * as React from 'react'; interface AnchorOrigin { vertical: 'top' | 'center' | 'bottom'; horizontal: 'left' | 'center' | 'right'; } export interface ConfirmProps { /** * 子元素 */ children: React.ReactElement; /** * 定义提醒内容 */ message: string; /** * 确定按钮被点击时的回调函数 */ onOk: (...args: any[]) => void; /** * 弹窗定位 */ anchorOrigin?: AnchorOrigin; /** * 定义弹窗宽度 */ width?: number; /** * 定义弹窗高度 */ height?: number; /** * 定义布局方式 */ inline?: boolean; } export interface ConfirmState { anchorEl: Element; } export default class Confirm extends React.Component { constructor(props: ConfirmProps); handleClick: (event: any) => void; handleClose: () => void; render(): JSX.Element; } export {};