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

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

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