UNPKG

@tarojs/components

Version:
17 lines (16 loc) 603 B
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime'; export declare type Mode = 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right'; export declare class Image implements ComponentInterface { src: string; mode: Mode; lazyLoad: boolean; nativeProps: {}; aspectFillMode: string; onLoad: EventEmitter; onError: EventEmitter; private imgRef; componentDidLoad(): void; imageOnLoad(): void; imageOnError(): void; render(): any; }