chore: update type backtop (#2691)

This commit is contained in:
xrkffgg 2020-08-17 17:09:28 +08:00 committed by GitHub
parent 10ca7ae8b2
commit 8b19623ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
types/back-top.d.ts vendored
View File

@ -5,17 +5,19 @@
import { AntdComponent } from './component';
export declare class BackTop extends AntdComponent {
/**
* specifies the scrollable area dom node
* @default () => window
* @type Function
*/
target: () => HTMLElement;
$props: {
/**
* specifies the scrollable area dom node
* @default () => window
* @type Function
*/
target?: () => HTMLElement;
/**
* the BackTop button will not show until the scroll height reaches this value
* @default 400
* @type number
*/
visibilityHeight: number;
/**
* the BackTop button will not show until the scroll height reaches this value
* @default 400
* @type number
*/
visibilityHeight?: number;
};
}