Skip to content

Commit

Permalink
fix(comp:upload): action's type is wrong (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzaijiang committed Aug 30, 2022
1 parent 5fc5ea1 commit 06c02b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/upload/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const uploadProps = {
},
accept: String,
action: {
type: [String, Function] as PropType<(file: UploadFile<any>) => Promise<string>>,
type: [String, Function] as PropType<string | ((file: UploadFile<any>) => Promise<string>)>,
required: true,
},
dragable: {
Expand Down

0 comments on commit 06c02b6

Please sign in to comment.