shineout
Version:
Shein 前端组件库
36 lines (35 loc) • 1.32 kB
TypeScript
import { Component } from 'react';
import Card from '../Card';
import { ModalProps, Options, ModalFunctionOptions } from './Props';
declare class Modal extends Component<ModalProps> {
static defaultProps: {
usePortal: boolean;
visible: boolean;
hideMask: boolean;
esc: boolean;
className: string;
size: import("../@types/common").RegularAttributes.Size;
style: import("react").CSSProperties;
type: string;
};
id: string;
visible?: boolean;
static displayName: string;
static info: (option: ModalFunctionOptions) => () => void;
static warn: (option: ModalFunctionOptions) => () => void;
static error: (option: ModalFunctionOptions) => () => void;
static confirm: (option: ModalFunctionOptions) => () => void;
static show: (option: ModalFunctionOptions) => () => void;
static success: (option: ModalFunctionOptions) => () => void;
static closeAll: () => void;
static Submit: typeof Card.Submit;
constructor(props: ModalProps);
componentDidMount(): void;
shouldComponentUpdate(nextProps: any): any;
componentDidUpdate(): void;
componentWillUnmount(): void;
getOption(): Options;
handleUpdate(): void;
render(): import("react").ReactPortal | null;
}
export default Modal;