shineout
Version:
Shein 前端组件库
26 lines (25 loc) • 728 B
TypeScript
import React from 'react';
import { PureComponent } from '../component';
interface MagnifyProps {
src?: string;
position: string;
maxWidth: number;
maxHeight: number;
lockScroll: (isLock: boolean) => void;
}
interface State {
loading: boolean;
status: number;
style: React.CSSProperties;
}
declare class Magnify extends PureComponent<MagnifyProps, State> {
element: HTMLDivElement;
constructor(props: MagnifyProps);
componentDidUpdate(prevProps: MagnifyProps): void;
move(clientX: number, clientY: number): void;
handleLoaded(): void;
handleMove(e: React.MouseEvent): void;
handleResize(e: React.MouseEvent): void;
render(): JSX.Element;
}
export default Magnify;