UNPKG

dumi-theme-antd-style

Version:

dumi-theme-antd-style 是为 dumi2 打造的一款文档站主题包,提供了更加美观、易用的研发与阅读体验

42 lines (41 loc) 1.27 kB
import React, { Component, ReactNode, RefObject } from 'react'; type Props = { children: ReactNode; className?: string; elementType?: string; height?: string | number; offset?: string | number; threshold?: number; width?: number | string; onContentVisible?: () => void; }; type State = { visible: boolean; }; export declare class IntersectionLoad extends Component<Props, State> { static defaultProps: { elementType: string; className: string; offset: number; threshold: number; width: null; onContentVisible: null; height: null; }; elementObserver: IntersectionObserver | null; wrapper: RefObject<HTMLElement> | null; constructor(props: Props); componentDidMount(): void; shouldComponentUpdate(_: Props, nextState: State): boolean; componentWillUnmount(): void; getEventNode(): HTMLElement | (Window & typeof globalThis); lazyLoadHandler: (entries: IntersectionObserverEntry[]) => void; render(): React.ReactElement<{ className: string; style: { width: string | number | undefined; }; ref: React.RefObject<HTMLElement> | null; }, string | React.JSXElementConstructor<any>>; } export {};