You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
976 B
26 lines
976 B
import { ModalFuncProps } from './Modal';
|
|
export declare type ModalFunc = (props: ModalFuncProps) => {
|
|
destroy: () => void;
|
|
update: (newConfig: ModalFuncProps) => void;
|
|
};
|
|
export interface ModalStaticFunctions {
|
|
info: ModalFunc;
|
|
success: ModalFunc;
|
|
error: ModalFunc;
|
|
warn: ModalFunc;
|
|
warning: ModalFunc;
|
|
confirm: ModalFunc;
|
|
}
|
|
export default function confirm(config: ModalFuncProps): {
|
|
destroy: (...args: any[]) => void;
|
|
update: (newConfig: ModalFuncProps) => void;
|
|
};
|
|
export declare function withWarn(props: ModalFuncProps): ModalFuncProps;
|
|
export declare function withInfo(props: ModalFuncProps): ModalFuncProps;
|
|
export declare function withSuccess(props: ModalFuncProps): ModalFuncProps;
|
|
export declare function withError(props: ModalFuncProps): ModalFuncProps;
|
|
export declare function withConfirm(props: ModalFuncProps): ModalFuncProps;
|
|
export declare function globalConfig({ rootPrefixCls }: {
|
|
rootPrefixCls?: string;
|
|
}): void;
|