UNPKG

zent

Version:

一套前端设计语言和基于React的实现

32 lines (31 loc) 825 B
import { Component } from 'react'; export interface IPreviewImageProps { className: string; showRotateBtn: boolean; images: any[]; index: number; onClose(): void; scaleRatio: number; } export default class Image extends Component<IPreviewImageProps, any> { state: { imageIndex: number; imageStyle: {}; rotateIndex: number; scaleTag: boolean; }; static defaultProps: { className: string; showRotateBtn: boolean; images: any[]; index: number; scaleRatio: number; }; onMaskClick: (e: React.MouseEvent<HTMLDivElement>) => void; onClose: () => void; handlePreviousAction: () => void; handleNextAction: () => void; handleRotate: () => void; handleScale: () => void; render(): JSX.Element; }