@jdcfe/yep-react
Version:
一套移动端的React组件库
44 lines (43 loc) • 1.19 kB
TypeScript
import * as React from 'react';
import confirm from './confirm';
export interface DialogProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
title?: string;
footer?: React.ReactNode;
bodyStyle?: React.CSSProperties;
onClose?: (e: any) => void;
show?: boolean;
maskCloseable?: boolean;
dialogTransition?: string;
maskTransition?: string;
usePortal?: boolean;
}
interface DialogState {
show?: boolean;
}
export default class Dialog extends React.PureComponent<DialogProps, DialogState> {
static confirm: typeof confirm;
static defaultProps: {
prefixCls: string;
style: {};
bodyStyle: {};
show: boolean;
maskCloseable: boolean;
maskTransition: string;
dialogTransition: string;
onClose: () => null;
usePortal: boolean;
};
constructor(props: DialogProps);
componentDidMount(): void;
componentWillReceiveProps(nextProps: any): void;
close(e: any): void;
onMaskClick(e: any): void;
renderHeader(): JSX.Element;
renderBody(): JSX.Element;
renderFooter(): JSX.Element;
render(): JSX.Element;
}
export {};