feat: update ts types

pull/398/head
tangjinzhou 2019-01-05 11:24:56 +08:00
parent 380e4cd53d
commit b955d50b0c
4 changed files with 20 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export declare class LayoutSider extends AntdComponent {
/** /**
* width of the collapsed sidebar, by setting to 0 a special trigger will appear * width of the collapsed sidebar, by setting to 0 a special trigger will appear
* @default 64 * @default 80
* @type number * @type number
*/ */
collapsedWidth: number; collapsedWidth: number;

View File

@ -17,4 +17,10 @@ export declare class MenuItem extends AntdComponent {
* @type boolean * @type boolean
*/ */
disabled: boolean; disabled: boolean;
/**
* set display title for collapsed item
* @type string
*/
title: string;
} }

View File

@ -67,6 +67,12 @@ export interface NotificationOptions {
* @type Function * @type Function
*/ */
onClose?: Function; onClose?: Function;
/**
* Specify a function that will be called when the notification is clicked
* @type Function
*/
onClick?: Function;
} }
export interface NotificationConfigOptions { export interface NotificationConfigOptions {

7
types/slider.d.ts vendored
View File

@ -103,6 +103,13 @@ export declare class Slider extends AntdComponent {
*/ */
vertical: boolean; 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 * remove focus
*/ */