import React from 'react'; import { IProps, HTMLDivProps } from '@uiw/utils'; import './style/index.less'; export interface ChildrenFunction { scrollToTop: () => void; percent: number; current: number; } export interface BackTopProps extends IProps, Omit { offsetTop?: number; clickable?: boolean; content?: JSX.Element | string; fixed?: boolean; /** * 滚动距离多少时显示组件 */ showBelow?: number; speed?: number; children?: React.ReactNode | ((props: ChildrenFunction) => React.ReactNode); } export interface IBackTopState { percent: number; current: number; } declare const _default: React.ForwardRefExoticComponent>; export default _default;