UNPKG

open-library

Version:

开放组件库

21 lines (20 loc) 599 B
import React from 'react'; import './index.less'; declare type Position = 'right' | 'left' | 'top' | 'bottom'; interface LoupeProps { scale?: number; position?: Position; src: string; distance?: number; maskBlockStyle?: React.CSSProperties; maskBlockClassName?: string; zIndex?: number; width?: number | string; height?: number | string; alt?: string; onError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => string; fallback?: string; loupe?: boolean; } declare const Index: React.FC<LoupeProps>; export default Index;