Skip to content

Commit 6026137

Browse files
authored
fix: 修复 wd-upload 组件的 formData 属性的 ts 类型为 void 的问题 (#1106)
1 parent 1938d92 commit 6026137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/uni_modules/wot-design-uni/components/wd-upload

src/uni_modules/wot-design-uni/components/wd-upload/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const uploadProps = {
215215
* 类型:object
216216
* 默认值:{}
217217
*/
218-
formData: { type: Object as PropType<UploadFormData>, default: () => {} },
218+
formData: { type: Object as PropType<UploadFormData>, default: () => ({}) },
219219
/**
220220
* 预览失败执行操作
221221
* 类型:function({index,imgList})

0 commit comments

Comments
 (0)