import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface IZoomImgProps { /** * 默认前缀 * * @default "lg" **/ prefixCls?: string; /** * 自定义类名 * * @default "" **/ className?: string; /** * 图片地址 * * @default "" **/ imgSrc: string; /** * 图片放大倍数 * * @default 2 **/ Zoom: number; /** * 放大镜的样式 * * @default {} **/ style: { width: string; height: string; }; /** * 图片点击事件 * * @default () => {} **/ onImgClick?: () => void; } interface IZoomImgState { MagX: number; MagY: number; SourceWidth: number; SourceHeight: number; MagWidth: number; MagHeight: number; SourceTop: number; SourceLeft: number; isEnter: boolean; } declare class ZoomImg extends React.PureComponent { static defaultProps: { className: string; imgSrc: string; Zoom: number; style: { width: string; height: string; }; onImgClick: () => null; }; private ParentOffset; private prefixCls; constructor(props: IZoomImgProps); readonly state: Readonly; imgLoaded: () => void; initAttr: () => void; changeMouseStatus: () => void; handleClick: () => void; ZoomMove: (e: any) => void; renderZoomImg: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default ZoomImg;