UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

36 lines (35 loc) 1.04 kB
import * as React from 'react'; export interface LazyLoadProps { once: boolean; height: number | string; offset: number | number[]; overflow: boolean; resize: boolean; scroll: boolean; children: React.ReactNode; throttle: number | boolean; debounce: number | boolean; placeholder: React.ReactNode; scrollContainer: string; unmountIfInvisible: boolean; } declare const lazyLoadHandler: () => void; declare class LazyLoad extends React.Component<LazyLoadProps, any> { static lazyload: (options: LazyLoadProps) => React.ReactNode; static defaultProps: { once: boolean; offset: number; overflow: boolean; resize: boolean; scroll: boolean; unmountIfInvisible: boolean; }; visible: boolean; constructor(props: LazyLoadProps); componentDidMount(): void; shouldComponentUpdate(): boolean; componentWillUnmount(): void; render(): {} | null | undefined; } export default LazyLoad; export { lazyLoadHandler as forceCheck };