Skip to content

Commit 2c4ad4c

Browse files
monkindeyyouluna
authored andcommitted
fix(TypeScript): correct Upload Dragger props, close #936
fix(TypeScript): correct Upload Dragger props, close #936
1 parent 6adb1be commit 2c4ad4c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

types/upload/index.d.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,9 @@ export interface CardProps extends HTMLAttributesWeak, CommonProps {
187187
onCancel?: () => void;
188188
}
189189

190-
export class Card extends React.Component<CardProps, any> { }
190+
export class Card extends React.Component<CardProps, any> {}
191191

192-
export interface DraggerProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
193-
/**
194-
* 样式前缀
195-
*/
196-
prefix?: string;
197-
}
198-
199-
export class Dragger extends React.Component<DraggerProps, any> { }
192+
export class Dragger extends React.Component<UploadProps, any> {}
200193

201194
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
202195
onSelect?: any;
@@ -244,7 +237,7 @@ export interface SelecterProps extends HTMLAttributesWeak, CommonProps {
244237
onDrop?: () => void;
245238
}
246239

247-
export class Selecter extends React.Component<SelecterProps, any> { }
240+
export class Selecter extends React.Component<SelecterProps, any> {}
248241
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
249242
onError?: any;
250243
onSelect?: any;

0 commit comments

Comments
 (0)