Skip to content

Commit 4cfd1e5

Browse files
fix: 🐛 修复upload组件header默认值错误的问题
Closes: #691
1 parent 92aa1ef commit 4cfd1e5

File tree

1 file changed

+1
-1
lines changed
  • src/uni_modules/wot-design-uni/components/wd-upload

1 file changed

+1
-1
lines changed

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
@@ -144,7 +144,7 @@ export const uploadProps = {
144144
* 类型:object
145145
* 默认值:{}
146146
*/
147-
header: { type: Object as PropType<Record<string, any>>, default: () => {} },
147+
header: { type: Object as PropType<Record<string, any>>, default: () => ({}) },
148148
/**
149149
* 是否支持多选文件
150150
* 类型:boolean

0 commit comments

Comments
 (0)