From b955d50b0c130047e1e3427e278bc300d34f37c6 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 5 Jan 2019 11:24:56 +0800 Subject: [PATCH] feat: update ts types --- types/layout/layout-sider.d.ts | 2 +- types/menu/menu-item.d.ts | 6 ++++++ types/notification.d.ts | 6 ++++++ types/slider.d.ts | 7 +++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/types/layout/layout-sider.d.ts b/types/layout/layout-sider.d.ts index d35e00a71..d26942969 100644 --- a/types/layout/layout-sider.d.ts +++ b/types/layout/layout-sider.d.ts @@ -59,7 +59,7 @@ export declare class LayoutSider extends AntdComponent { /** * width of the collapsed sidebar, by setting to 0 a special trigger will appear - * @default 64 + * @default 80 * @type number */ collapsedWidth: number; diff --git a/types/menu/menu-item.d.ts b/types/menu/menu-item.d.ts index ab9486b52..f314d50f8 100644 --- a/types/menu/menu-item.d.ts +++ b/types/menu/menu-item.d.ts @@ -17,4 +17,10 @@ export declare class MenuItem extends AntdComponent { * @type boolean */ disabled: boolean; + + /** + * set display title for collapsed item + * @type string + */ + title: string; } diff --git a/types/notification.d.ts b/types/notification.d.ts index 329e1e1cb..1b55e839d 100644 --- a/types/notification.d.ts +++ b/types/notification.d.ts @@ -67,6 +67,12 @@ export interface NotificationOptions { * @type Function */ onClose?: Function; + + /** + * Specify a function that will be called when the notification is clicked + * @type Function + */ + onClick?: Function; } export interface NotificationConfigOptions { diff --git a/types/slider.d.ts b/types/slider.d.ts index 636870fb5..6129f689a 100644 --- a/types/slider.d.ts +++ b/types/slider.d.ts @@ -103,6 +103,13 @@ export declare class Slider extends AntdComponent { */ vertical: boolean; + /** + * If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering. + * @default false + * @type boolean + */ + tooltipVisible: boolean; + /** * remove focus */