@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
19 lines (18 loc) • 572 B
TypeScript
import * as React from 'react';
import PropTypes from 'prop-types';
import { ModalProps } from 'antd/es/modal';
/**
* 全局弹窗组件样式封装
*/
export default class Modal extends React.Component<ModalProps, any> {
static childContextTypes: {
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
};
getChildContext(): {
getPopupContainer: () => HTMLElement;
};
containerRef: HTMLElement | null;
setContainerRef(ref: any): void;
childrenGetPopupContainer(): HTMLElement;
render(): React.JSX.Element;
}