Skip to content

Commit 8b19623

Browse files
authored
chore: update type backtop (#2691)
1 parent 10ca7ae commit 8b19623

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

types/back-top.d.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
import { AntdComponent } from './component';
66

77
export declare class BackTop extends AntdComponent {
8-
/**
9-
* specifies the scrollable area dom node
10-
* @default () => window
11-
* @type Function
12-
*/
13-
target: () => HTMLElement;
8+
$props: {
9+
/**
10+
* specifies the scrollable area dom node
11+
* @default () => window
12+
* @type Function
13+
*/
14+
target?: () => HTMLElement;
1415

15-
/**
16-
* the BackTop button will not show until the scroll height reaches this value
17-
* @default 400
18-
* @type number
19-
*/
20-
visibilityHeight: number;
16+
/**
17+
* the BackTop button will not show until the scroll height reaches this value
18+
* @default 400
19+
* @type number
20+
*/
21+
visibilityHeight?: number;
22+
};
2123
}

0 commit comments

Comments
 (0)