UNPKG

mr-component

Version:
23 lines (22 loc) 695 B
import * as React from 'react'; interface VantImageProps { src?: string; alt?: string; width?: number | string; height?: number | string; fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; round?: boolean; radius?: number | string; lazyLoad?: boolean; showError?: boolean; showLoading?: boolean; errorIcon?: React.ReactNode; loadingIcon?: React.ReactNode; onClick?: () => void; onLoad?: () => void; onError?: () => void; style?: React.CSSProperties; className?: string; } declare const RefVantImage: React.ForwardRefExoticComponent<VantImageProps & React.RefAttributes<HTMLImageElement>>; export default RefVantImage;