@oceanbase/design
Version:
The Design System of OceanBase
39 lines (38 loc) • 1.66 kB
TypeScript
import type { ModalFuncProps, ModalProps as AntModalProps } from 'antd/es/modal';
import React from 'react';
export interface ModalProps extends AntModalProps {
extra?: React.ReactNode;
}
declare const Modal: {
({ extra, footer, prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
info(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
success(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
error(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
warning(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
warn(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
confirm(props: ModalFuncProps): {
destroy: () => void;
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
};
useModal: typeof import("antd/es/modal/useModal").default;
destroyAll: () => void;
config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
displayName: string;
};
export default Modal;