Skip to content

Commit

Permalink
fix(TypeScript): correct Upload Dragger props, close #936
Browse files Browse the repository at this point in the history
fix(TypeScript): correct Upload Dragger props, close #936
  • Loading branch information
monkindey authored and youluna committed Jul 30, 2019
1 parent 6adb1be commit 2c4ad4c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions types/upload/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,9 @@ export interface CardProps extends HTMLAttributesWeak, CommonProps {
onCancel?: () => void;
}

export class Card extends React.Component<CardProps, any> { }
export class Card extends React.Component<CardProps, any> {}

export interface DraggerProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
/**
* 样式前缀
*/
prefix?: string;
}

export class Dragger extends React.Component<DraggerProps, any> { }
export class Dragger extends React.Component<UploadProps, any> {}

interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
onSelect?: any;
Expand Down Expand Up @@ -244,7 +237,7 @@ export interface SelecterProps extends HTMLAttributesWeak, CommonProps {
onDrop?: () => void;
}

export class Selecter extends React.Component<SelecterProps, any> { }
export class Selecter extends React.Component<SelecterProps, any> {}
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
onError?: any;
onSelect?: any;
Expand Down

0 comments on commit 2c4ad4c

Please sign in to comment.