琼华
琼华
  • 发布:2022-02-22 22:15
  • 更新:2024-03-04 11:16
  • 阅读:1919

【报Bug】uni-file-picker 提示某些字段不能空

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号:

HBuilderX类型: 正式

HBuilderX版本号: 3.3.11

第三方开发者工具版本号:

基础库版本号:

项目创建方式: HBuilderX

操作步骤:

直接贴用法里的代码

预期结果:

可以直接使用

实际结果:

报错

bug描述:

https://uniapp.dcloud.io/component/uniui/uni-file-picker,按照第一个例子(基础用法),
[Component] property "filesList" of "uni_modules/uni-file-picker/components/uni-file-picker/upload-file" received type-uncompatible value: expected <Array> but got non-array value. Used empty array instead.
[Component] property "showType" of "uni_modules/uni-file-picker/components/uni-file-picker/upload-file" received type-uncompatible value: expected <String> but get null value. Use empty string instead.

2022-02-22 22:15 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

9***@qq.com

9***@qq.com

我也报这个了,组件已经更新了还是报一样的错

7***@qq.com

7***@qq.com

请问你解决了么,我也报了这个错误

z***@foxmail.com

z***@foxmail.com

我也报这个错误

HZH8997

HZH8997

2023-05-11

<uni-file-picker  
                    disable-preview  
                    limit="1"  
                    file-mediatype="image"  
                    :value="headPortrait"  
                    :del-icon="false"  
                    :imageStyles="{  
                        width: 75,  
                        height: 75,  
                        border: {  
                            radius: '50%',  
                            color: 'transparent'  
                        }  
                    }"  
                >  
                    选择  
                </uni-file-picker>  

headPortrait: [  
                {  
                    url: 'https://www.xxx.cn/static/image/assist/property-3.png',  
                    extname: 'png',  
                    name: 'property-3'  
                }  
            ],

property "filesList" of "uni_modules/uni-file-picker/components/uni-file-picker/upload-file" received type-uncompatible value: expected <Array> but got non-array value. Used empty array instead.

property "imageStyles" of "uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker" received type-uncompatible value: expected <Object> but got non-object value. Used null instead.

5***@qq.com

5***@qq.com

解决了吗我也是这个问题

q***@126.com

q***@126.com

解决了吗?

1***@qq.com

1***@qq.com

解决了吗,我也遇到了这个问题

要回复问题请先登录注册