UNPKG

zarm

Version:

基于 React 的移动端UI库

26 lines (25 loc) 794 B
/// <reference types="react" /> import type { Locale } from '../config-provider/interface'; import type { MountContainer } from '../utils/dom'; import type LOAD_STATUS from './utils/loadStatus'; export interface ImageObject { src: string; originSrc: string; } export declare type Images = Array<Partial<ImageObject> & { loaded?: LOAD_STATUS; }>; export interface BaseImagePreviewProps { images: ReadonlyArray<ImageObject | string>; visible?: boolean; title?: React.ReactNode; activeIndex?: number; showPagination?: boolean; maxScale?: number; minScale?: number; locale?: Locale['ImagePreview']; orientation?: 'landscape' | 'portrait'; mountContainer?: MountContainer; onChange?: (activeIndex: number) => void; onClose?: () => void; }