mui-component
Version:
some custom mui components
13 lines (12 loc) • 579 B
TypeScript
import type { HTMLAttributes } from "react";
import type { ModalProps } from "../../feedback";
interface ImageModalViewerProps extends ModalProps {
imgSrc: string;
showDownload?: boolean;
onFileDownloadStart?: (fileUrl: string, fileName?: string) => void | boolean;
/** 点击文件下载后的回调 */
onFileDownload?: (fileUrl: string, fileName?: string) => void | Promise<void>;
imgProps?: HTMLAttributes<HTMLImageElement>;
}
export declare const ImageModalViewer: (props: ImageModalViewerProps) => import("react/jsx-runtime").JSX.Element;
export {};