From 5cd17e0388075bd7f7b3eb484b41c606649db30d Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 2 Jan 2019 20:22:45 +0800 Subject: [PATCH] feat: update ts --- types/avatar.d.ts | 6 ++++++ types/checkbox/checkbox-group.d.ts | 2 +- types/date-picker/month-picker.d.ts | 6 +++--- types/drawer.d.ts | 12 ++++++------ types/dropdown/dropdown.d.ts | 12 ++++++++++++ 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/types/avatar.d.ts b/types/avatar.d.ts index b9c33fe34..2c5ca5bf5 100644 --- a/types/avatar.d.ts +++ b/types/avatar.d.ts @@ -31,6 +31,12 @@ export declare class Avatar extends AntdComponent { */ src: string; + /** + * a list of sources to use for different screen resolutions + * @type string + */ + srcSet: string; + /** * This attribute defines the alternative text describing the image * @type string diff --git a/types/checkbox/checkbox-group.d.ts b/types/checkbox/checkbox-group.d.ts index d5ac504b1..601ca9d01 100644 --- a/types/checkbox/checkbox-group.d.ts +++ b/types/checkbox/checkbox-group.d.ts @@ -19,7 +19,7 @@ export declare class CheckboxGroup extends AntdComponent { disabled: boolean; /** - * Specifies options + * Specifies options, you can customize `label` with slot = "label" slot-scope = "option" * @type Array */ options: Array< diff --git a/types/date-picker/month-picker.d.ts b/types/date-picker/month-picker.d.ts index 0f84540ab..0b2b18cbd 100644 --- a/types/date-picker/month-picker.d.ts +++ b/types/date-picker/month-picker.d.ts @@ -19,12 +19,12 @@ export declare class MonthPicker extends DatepickerCommon { defaultPickerValue: Moment; /** - * to set the date format, refer to moment.js + * to set the date format, When an array is provided, all values are used for parsing and first value for display. refer to moment.js * @default 'YYYY-MM' - * @type string + * @type string | string[] * @see http://momentjs.com */ - format: string; + format: string | string[]; /** * Custom month cell content render method by setting a scoped slot diff --git a/types/drawer.d.ts b/types/drawer.d.ts index f752ed2a1..223bf96e5 100644 --- a/types/drawer.d.ts +++ b/types/drawer.d.ts @@ -66,6 +66,12 @@ export declare class Drawer extends AntdComponent { */ wrapClassName: string; + /** + * The style of the container of the Drawer dialog. + * @type object + */ + wrapStyle: object; + /** * Width of the Drawer dialog. * @default 256 @@ -79,12 +85,6 @@ export declare class Drawer extends AntdComponent { */ height: string | number; - /** - * The class name of the container of the Drawer dialog. - * @type string - */ - className: string; - /** * The z-index of the Drawer. * @default 1000 diff --git a/types/dropdown/dropdown.d.ts b/types/dropdown/dropdown.d.ts index db7c4a1fb..3872c902d 100644 --- a/types/dropdown/dropdown.d.ts +++ b/types/dropdown/dropdown.d.ts @@ -22,6 +22,18 @@ export declare class Dropdown extends AntdComponent { */ overlay: Menu; + /** + * Class name of the dropdown root element + * @type string + */ + overlayClassName: string; + + /** + * Style of the dropdown root element + * @type object + */ + overlayStyle: object; + /** * whether the dropdown menu is visible * @type boolean