UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

26 lines (25 loc) 749 B
import React, { Component, CSSProperties } from 'react'; export interface BackTopProps { visibilityHeight?: number; onClick?: React.MouseEventHandler<HTMLElement>; target?: () => HTMLElement | Window; prefixCls?: string; className?: string; style?: CSSProperties; visible?: boolean; } export default class BackTop extends Component<BackTopProps, any> { static displayName: string; static defaultProps: { visibilityHeight: number; }; scrollEvent: any; state: { visible: boolean; }; componentDidMount(): void; componentWillUnmount(): void; scrollToTop: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; handleScroll: () => void; render(): JSX.Element; }