Skip to content

Commit b955d50

Browse files
committed
feat: update ts types
1 parent 380e4cd commit b955d50

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

types/layout/layout-sider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export declare class LayoutSider extends AntdComponent {
5959

6060
/**
6161
* width of the collapsed sidebar, by setting to 0 a special trigger will appear
62-
* @default 64
62+
* @default 80
6363
* @type number
6464
*/
6565
collapsedWidth: number;

types/menu/menu-item.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ export declare class MenuItem extends AntdComponent {
1717
* @type boolean
1818
*/
1919
disabled: boolean;
20+
21+
/**
22+
* set display title for collapsed item
23+
* @type string
24+
*/
25+
title: string;
2026
}

types/notification.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ export interface NotificationOptions {
6767
* @type Function
6868
*/
6969
onClose?: Function;
70+
71+
/**
72+
* Specify a function that will be called when the notification is clicked
73+
* @type Function
74+
*/
75+
onClick?: Function;
7076
}
7177

7278
export interface NotificationConfigOptions {

types/slider.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ export declare class Slider extends AntdComponent {
103103
*/
104104
vertical: boolean;
105105

106+
/**
107+
* If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering.
108+
* @default false
109+
* @type boolean
110+
*/
111+
tooltipVisible: boolean;
112+
106113
/**
107114
* remove focus
108115
*/

0 commit comments

Comments
 (0)