UNPKG

shineout

Version:

Shein 前端组件库

20 lines (19 loc) 571 B
import React from 'react'; import { PureComponent } from '../component'; import { LazyloadProps } from './Props'; interface LazyloadState { ready: boolean; } declare class Lazyload extends PureComponent<LazyloadProps, LazyloadState> { static defaultProps: { offset: number; }; placeholder: HTMLSpanElement; lazyId: string | null; constructor(props: LazyloadProps); componentDidMount(): void; componentWillUnmount(): void; placeholderRef: (el: HTMLSpanElement) => void; render(): React.ReactNode; } export default Lazyload;