UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

31 lines (30 loc) 1.07 kB
import * as React from 'react'; import * as PropTypes from 'prop-types'; export interface StickyContainerProps { } export default class StickyContainer extends React.PureComponent<StickyContainerProps, any> { static defaultProps: {}; static childContextTypes: { subscribe: PropTypes.Requireable<(...args: any[]) => any>; unsubscribe: PropTypes.Requireable<(...args: any[]) => any>; getParent: PropTypes.Requireable<(...args: any[]) => any>; }; getChildContext(): { subscribe: (handler: any) => void; unsubscribe: (handler: any) => void; getParent: () => HTMLDivElement; }; node: HTMLDivElement; subscribers: never[]; events: string[]; framePending: boolean; constructor(props: StickyContainerProps); subscribe(handler: any): void; unsubscribe(handler: any): void; notifySubscribers(evt: any): void; createRef(node: HTMLDivElement): void; getParent(): HTMLDivElement; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; }