test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
31 lines (30 loc) • 775 B
TypeScript
import React, { FunctionComponent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface BackTopProps extends BasicComponent {
/**
* 获取监听的目标元素
* @default -
*/
target: string
/**
* 页面垂直滚动多高后出现
* @default 200
*/
threshold: number
/**
* 设置组件页面层级
* @default 10
*/
zIndex: number
/**
* 设置动画持续时间,为 0 时表示无动画
* @default 1000
*/
duration: number
/**
* 按钮点击时触发事件
* @default -
*/
onClick?: (event: MouseEvent) => void
}
export declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;