We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae8a20 commit b70991aCopy full SHA for b70991a
1 file changed
src/uni_modules/wot-design-uni/components/wd-upload/types.ts
@@ -130,13 +130,19 @@ export const uploadProps = {
130
* 类型:array
131
* 默认值:['album','camera']
132
*/
133
- sourceType: makeArrayProp<UploadSourceType>(),
+ sourceType: {
134
+ type: Array as PropType<UploadSourceType[]>,
135
+ default: () => ['album', 'camera']
136
+ },
137
/**
138
* 所选的图片的尺寸,chooseImage接口详细参数,查看官方手册
139
140
* 默认值:['original','compressed']
141
- sizeType: makeArrayProp<UploadSizeType>(),
142
+ sizeType: {
143
+ type: Array as PropType<UploadSizeType[]>,
144
+ default: () => ['original', 'compressed']
145
146
147
* 文件对应的key,开发者在服务端可以通过这个key获取文件的二进制内容,uploadFile接口详细参数,查看官方手册
148
* 类型:string
0 commit comments