nicecode-v2/packages/biz/es/ViewLargerImageModal/ViewLargerImageModal.d.ts

26 lines
880 B
TypeScript

import React from 'react';
import { ModalProps, SpaceProps } from 'antd';
import './index.less';
type ViewLargerImageModalParams = {
imgSrc?: string;
warningData?: {
label?: string;
value?: string;
}[];
};
export interface ViewLargerImageModalRef {
show: (params?: ViewLargerImageModalParams) => void;
handleCancel: () => void;
}
export interface ViewLargerImageModalProps {
imgStyle?: React.CSSProperties;
downloadImg?: (imgSrc?: string) => void;
title?: string;
downloadText?: string;
modalProps?: ModalProps;
spaceProps?: SpaceProps;
}
export declare const ViewLargerImageModal: React.ForwardRefExoticComponent<ViewLargerImageModalProps & React.RefAttributes<ViewLargerImageModalRef>>;
export default ViewLargerImageModal;
export declare const useViewLargerImageModal: () => React.RefObject<ViewLargerImageModalRef>;