/** * @desc 弹窗 * @author 智慧能源事业部-蔡利平 */ import { ModalProps } from 'antd'; import React, { ReactNode } from 'react'; export interface IPopModalType extends Omit { /** 弹窗标题 */ title: ReactNode; /** 弹窗是否可拖动 */ moveable?: boolean; /** 移动模式,即关闭弹窗后,再次打开弹窗是在上次移动的位置出现(stay),还是每次从固定的初始位置出现 (reset),仅moveable为true时生效*/ moveMode?: 'reset' | 'stay'; /** 是否显示全屏按钮 */ showFullscreen?: boolean; /** 底部内容,当不需要默认自带的底部按钮时,可以设置为null */ footer?: React.ReactNode; /** 底部按钮对齐位置 */ footerBtnsAlign?: 'left' | 'center' | 'right'; /** 全屏时的回调 */ onFullScreen?: () => void; /** 取消全屏时的回调(处于全屏时关闭弹窗也会触发) */ onCancelFullScreen?: () => void; } declare const PopModal: ({ children, footer, okText, cancelText, title, moveable, moveMode, onFullScreen, onCancelFullScreen, visible, showFullscreen, okButtonProps, onCancel, className, cancelButtonProps, okType, footerBtnsAlign, ...restProps }: IPopModalType) => React.JSX.Element; export default PopModal;