UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

31 lines (30 loc) 778 B
import * as React from 'react'; export interface ToTopProps { prefixCls?: string; className?: string; style?: React.CSSProperties; onClick?: (e: any) => void; children?: React.ReactNode; displayHeight?: number; visible?: boolean; } export interface State { visible: boolean; } declare class ToTop extends React.PureComponent<ToTopProps, State> { static defaultProps: { prefixCls: string; style: {}; displayHeight: number; }; constructor(props: ToTopProps); componentDidMount(): void; componentWillUnmount(): void; static setScrollTop(parameters: { value: any; }): void; handleScroll: () => void; scrollToTop: (e: any) => void; render(): JSX.Element; } export default ToTop;