Skip to content

Commit 7a93fa4

Browse files
authored
fix(typo): form, carousel, upload. duplicate identifier (#1848)
1 parent 449c021 commit 7a93fa4

File tree

3 files changed

+22
-32
lines changed

3 files changed

+22
-32
lines changed

types/carousel.d.ts

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,28 @@ export declare class Carousel extends AntdComponent {
5555
adaptiveHeight?: boolean;
5656
arrows?: boolean;
5757
autoplaySpeed?: number;
58+
/**
59+
* Whether to scroll automatically
60+
* @default false
61+
* @type boolean
62+
*/
5863
autoplay?: boolean;
5964
centerMode?: boolean;
6065
centerPadding?: string;
6166
cssEase?: string;
6267
dotsClass?: string;
68+
/**
69+
* Whether to show the dots at the bottom of the gallery
70+
* @default true
71+
* @type boolean
72+
*/
6373
dots?: boolean;
6474
draggable?: boolean;
75+
/**
76+
* Transition interpolation function name
77+
* @default 'linear'
78+
* @type string
79+
*/
6580
easing?: string;
6681
edgeFriction?: number;
6782
fade?: boolean;
@@ -71,7 +86,7 @@ export declare class Carousel extends AntdComponent {
7186
pauseOnDotsHover?: boolean;
7287
pauseOnFocus?: boolean;
7388
pauseOnHover?: boolean;
74-
responsive?: ResponsiveObject[];
89+
responsive?: ResponsiveObject[] | undefined;
7590
rows?: number;
7691
rtl?: boolean;
7792
slide?: string;
@@ -86,6 +101,11 @@ export declare class Carousel extends AntdComponent {
86101
useCSS?: boolean;
87102
useTransform?: boolean;
88103
variableWidth?: boolean;
104+
/**
105+
* Whether to use a vertical display
106+
* @default false
107+
* @type boolean
108+
*/
89109
vertical?: boolean;
90110
verticalSwiping?: boolean;
91111
waitForAnimate?: boolean;
@@ -96,49 +116,19 @@ export declare class Carousel extends AntdComponent {
96116
*/
97117
afterChange: (current: number) => any;
98118

99-
/**
100-
* Whether to scroll automatically
101-
* @default false
102-
* @type boolean
103-
*/
104-
autoplay: boolean;
105-
106119
/**
107120
* Callback function called before the current index changes
108121
* @type Function
109122
*/
110123
beforeChange: (from: number, to: number) => any;
111124

112-
/**
113-
* Whether to show the dots at the bottom of the gallery
114-
* @default true
115-
* @type boolean
116-
*/
117-
dots: boolean;
118-
119-
/**
120-
* Transition interpolation function name
121-
* @default 'linear'
122-
* @type string
123-
*/
124-
easing: string;
125-
126125
/**
127126
* Transition effect
128127
* @default 'scrollx'
129128
* @type string
130129
*/
131130
effect: 'scrollx' | 'fade';
132131

133-
/**
134-
* Whether to use a vertical display
135-
* @default false
136-
* @type boolean
137-
*/
138-
vertical: boolean;
139-
140-
responsive: ResponsiveObject[];
141-
142132
/**
143133
* Go to slide index, if dontAnimate=true, it happens without animation
144134
* @param slideNumber slide number to go

types/form/form-item.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export declare class FormItem extends AntdComponent {
6262
* @type Col
6363
*/
6464
wrapperCol: Col;
65-
colon: boolean;
6665
labelAlign: 'left' | 'right';
6766
selfUpdate: boolean;
6867
}

types/upload.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface UploadLocale {
4646

4747
export type UploadType = 'drag' | 'select';
4848
export type UploadListType = 'text' | 'picture' | 'picture-card';
49+
export type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
4950

5051
type PreviewFileHandler = (file: File | Blob) => PromiseLike<string>;
5152
type TransformFileHandler = (

0 commit comments

Comments
 (0)