Browse Source

feat: update ts

pull/398/head
tangjinzhou 6 years ago
parent
commit
5cd17e0388
  1. 6
      types/avatar.d.ts
  2. 2
      types/checkbox/checkbox-group.d.ts
  3. 6
      types/date-picker/month-picker.d.ts
  4. 12
      types/drawer.d.ts
  5. 12
      types/dropdown/dropdown.d.ts

6
types/avatar.d.ts vendored

@ -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

2
types/checkbox/checkbox-group.d.ts vendored

@ -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<string | { label: string, value: string, disabled?: boolean, onChange?: Function }>
*/
options: Array<

6
types/date-picker/month-picker.d.ts vendored

@ -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

12
types/drawer.d.ts vendored

@ -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

12
types/dropdown/dropdown.d.ts vendored

@ -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

Loading…
Cancel
Save