@aimake/nanod
Version:
## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。
24 lines (23 loc) • 731 B
TypeScript
import * as React from 'react';
export interface BackTopProps {
visibilityHeight?: number;
onClick?: React.MouseEventHandler<any>;
target?: () => HTMLElement | Window;
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
}
export default class BackTop extends React.Component<BackTopProps, any> {
static defaultProps: {
visibilityHeight: number;
};
scrollEvent: any;
constructor(props: BackTopProps);
getCurrentScrollTop: () => number;
scrollToTop: (e: React.MouseEvent<HTMLDivElement>) => void;
setScrollTop(value: number): void;
handleScroll: () => void;
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
}