feat: update ts

pull/398/head
tangjinzhou 2019-01-02 20:22:45 +08:00
parent 3534e7d1d3
commit 5cd17e0388
5 changed files with 28 additions and 10 deletions

6
types/avatar.d.ts vendored
View File

@ -31,6 +31,12 @@ export declare class Avatar extends AntdComponent {
*/ */
src: string; 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 * This attribute defines the alternative text describing the image
* @type string * @type string

View File

@ -19,7 +19,7 @@ export declare class CheckboxGroup extends AntdComponent {
disabled: boolean; disabled: boolean;
/** /**
* Specifies options * Specifies options, you can customize `label` with slot = "label" slot-scope = "option"
* @type Array<string | { label: string, value: string, disabled?: boolean, onChange?: Function }> * @type Array<string | { label: string, value: string, disabled?: boolean, onChange?: Function }>
*/ */
options: Array< options: Array<

View File

@ -19,12 +19,12 @@ export declare class MonthPicker extends DatepickerCommon {
defaultPickerValue: Moment; 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' * @default 'YYYY-MM'
* @type string * @type string | string[]
* @see http://momentjs.com * @see http://momentjs.com
*/ */
format: string; format: string | string[];
/** /**
* Custom month cell content render method by setting a scoped slot * Custom month cell content render method by setting a scoped slot

12
types/drawer.d.ts vendored
View File

@ -66,6 +66,12 @@ export declare class Drawer extends AntdComponent {
*/ */
wrapClassName: string; wrapClassName: string;
/**
* The style of the container of the Drawer dialog.
* @type object
*/
wrapStyle: object;
/** /**
* Width of the Drawer dialog. * Width of the Drawer dialog.
* @default 256 * @default 256
@ -79,12 +85,6 @@ export declare class Drawer extends AntdComponent {
*/ */
height: string | number; height: string | number;
/**
* The class name of the container of the Drawer dialog.
* @type string
*/
className: string;
/** /**
* The z-index of the Drawer. * The z-index of the Drawer.
* @default 1000 * @default 1000

View File

@ -22,6 +22,18 @@ export declare class Dropdown extends AntdComponent {
*/ */
overlay: Menu; 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 * whether the dropdown menu is visible
* @type boolean * @type boolean