/** * - [ ] 全屏时候隐藏内容,动画结束再展示 (感觉这个不是必要) * - [ ] 拉的时候应该用鼠标位置 (误差很小 先不考虑) * - [ ] iframe 里面的点击 没法触发 点击事件,拿不到激活状态 * - [ ] 先全屏,再改变浏览器大小,再缩小,窗口会溢出浏览器 * - [x] 多个 Modal foucus z-index改变 * - [x] 拉浏览器考虑最小 * - [x] 鼠标指针样式,应该放 外面 * - [x] 文字选中问题还是存在 * - [x] 关闭按钮应该在标题上面,且脱离文档流 * - [x] 最小化应该是配置的是否显示 * - [x] 最大化应该是配置的 是否默认最大化 * - [x] head 支持配置 icon * - [x] 双击头全屏 */ import React, { ReactNode } from 'react'; import openModal from './open-modal'; export interface ModalProps { show?: boolean; className?: string; title?: false | string | ReactNode; icon?: string | ReactNode; isMax?: boolean; hideHead?: boolean; hideTools?: boolean; mask?: boolean; transparentMask?: boolean; maskClosable?: boolean; children: ReactNode; showToggleBtn?: boolean; container?: any; resize?: boolean; draggable?: boolean; modalWidth?: number; modalHeight?: number; headerColor?: string; rootStyle?: React.CSSProperties; rootClassName?: string; style?: React.CSSProperties; zIndex?: number; customHeader?: () => React.ReactNode; onClose?: () => any; onMinimize?: () => any; onMaximize?: () => any; onActive?: () => void; } declare const ModalComponent: React.ForwardRefExoticComponent> & { openModal: typeof openModal; }; export default ModalComponent;