UNPKG

shineout

Version:

Shein 前端组件库

40 lines (39 loc) 1.17 kB
import React from 'react'; import { PureComponent } from '../component'; import { ImageProps } from './Props'; import Group from './Group'; interface State { status: number; } export declare const IMAGE: {}; export default class Image extends PureComponent<ImageProps, State> { static symbolType: {}; static defaultProps: { lazy: boolean; target: string; width: string; height: string; }; static displayName: string; static Group: typeof Group; lazyId: string | null; image?: HTMLImageElement; element: HTMLElement | null; constructor(props: ImageProps); componentDidMount(): void; componentDidUpdate(prevProps: ImageProps): void; componentWillUnmount(): void; getUrl(url: string): string; preview(): void; bindElement(el: HTMLElement | null): void; fetchImage(): void; markToRender(): void; handleError(type: number, e: Event): void; handleAlt(): void; handleClick(e: React.MouseEvent): void; renderType(src?: string): JSX.Element; renderPlaceholder(): JSX.Element; renderImage(): JSX.Element | null; render(): JSX.Element; } export {};