Skip to content

Commit 5cd17e0

Browse files
committed
feat: update ts
1 parent 3534e7d commit 5cd17e0

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

types/avatar.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export declare class Avatar extends AntdComponent {
3131
*/
3232
src: string;
3333

34+
/**
35+
* a list of sources to use for different screen resolutions
36+
* @type string
37+
*/
38+
srcSet: string;
39+
3440
/**
3541
* This attribute defines the alternative text describing the image
3642
* @type string

types/checkbox/checkbox-group.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export declare class CheckboxGroup extends AntdComponent {
1919
disabled: boolean;
2020

2121
/**
22-
* Specifies options
22+
* Specifies options, you can customize `label` with slot = "label" slot-scope = "option"
2323
* @type Array<string | { label: string, value: string, disabled?: boolean, onChange?: Function }>
2424
*/
2525
options: Array<

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export declare class MonthPicker extends DatepickerCommon {
1919
defaultPickerValue: Moment;
2020

2121
/**
22-
* to set the date format, refer to moment.js
22+
* 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
2323
* @default 'YYYY-MM'
24-
* @type string
24+
* @type string | string[]
2525
* @see http://momentjs.com
2626
*/
27-
format: string;
27+
format: string | string[];
2828

2929
/**
3030
* Custom month cell content render method by setting a scoped slot

types/drawer.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ export declare class Drawer extends AntdComponent {
6666
*/
6767
wrapClassName: string;
6868

69+
/**
70+
* The style of the container of the Drawer dialog.
71+
* @type object
72+
*/
73+
wrapStyle: object;
74+
6975
/**
7076
* Width of the Drawer dialog.
7177
* @default 256
@@ -79,12 +85,6 @@ export declare class Drawer extends AntdComponent {
7985
*/
8086
height: string | number;
8187

82-
/**
83-
* The class name of the container of the Drawer dialog.
84-
* @type string
85-
*/
86-
className: string;
87-
8888
/**
8989
* The z-index of the Drawer.
9090
* @default 1000

types/dropdown/dropdown.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ export declare class Dropdown extends AntdComponent {
2222
*/
2323
overlay: Menu;
2424

25+
/**
26+
* Class name of the dropdown root element
27+
* @type string
28+
*/
29+
overlayClassName: string;
30+
31+
/**
32+
* Style of the dropdown root element
33+
* @type object
34+
*/
35+
overlayStyle: object;
36+
2537
/**
2638
* whether the dropdown menu is visible
2739
* @type boolean

0 commit comments

Comments
 (0)