/** * @file image 预览组件 * @author liulu36 */ import './style/index.less'; import Base from 'santd/base'; import Icon from '../icon'; import Modal from '../modal'; import { IPreviewProps, OriginType, Positon } from './interface'; interface PreviewComputed { previewGroupCount: ((this: Preview) => number) | number; showLeftOrRightSwitches: (this: Preview) => (boolean | undefined); previewUrlsKeys: ((this: Preview) => string[]) | string[]; currentPreviewIndex: ((this: Preview) => number) | number; combinationSrc: (this: Preview) => string; disabledZoomOut: (this: Preview) => boolean; wrapClassName: (this: Preview) => string; } export default class Preview extends Base { removeListeners?: () => void; originPosition?: OriginType; frame?: number | null; latestState?: Positon; onMouseMove?: (e: MouseEvent) => any; onMouseUp?: (e: MouseEvent) => any; onWheelMove?: (e: WheelEvent) => any; static template: string; static components: { 'std-modal': typeof Modal; 's-icon': typeof Icon; }; static messages: {}; initData(): IPreviewProps; static computed: PreviewComputed; inited(): void; attached(): void; setFramePosition(newState: Positon): void; detached(): void; onMaskClick(e: Event): void; onClose(): void; zoomIn(): void; zoomOut(): void; rotateRight(): void; rotateLeft(): void; onMouseDown(event: MouseEvent): void; onMovingEvent(): void; onAfterClose(): void; onSwitchLeft(event: Event): void; onSwitchRight(event: Event): void; } export {};