Skip to content

Commit

Permalink
chore(uploader): upd type of props.fileList (#2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Dec 9, 2023
1 parent 0a2e89b commit 51ee119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/__VUE/uploader/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default create({
timeout: { type: [Number, String], default: 1000 * 30 },
// defaultFileList: { type: Array, default: () => new Array<FileItem>() },
fileList: { type: Array<any>, default: () => [] },
fileList: { type: Array as PropType<any[]>, default: () => [] },
isPreview: { type: Boolean, default: true },
// picture、list
listType: { type: String, default: 'picture' },
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/uploader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default create({
url: { type: String, default: '' },
// defaultFileList: { type: Array, default: () => new Array<FileItem>() },
timeout: { type: [Number, String], default: 1000 * 30 },
fileList: { type: Array<any>, default: () => [] },
fileList: { type: Array as PropType<any[]>, default: () => [] },
isPreview: { type: Boolean, default: true },
// picture、list
listType: { type: String, default: 'picture' },
Expand Down

0 comments on commit 51ee119

Please sign in to comment.