其他分享
首页 > 其他分享> > <a-upLoad>连报三错

<a-upLoad>连报三错

作者:互联网

[Vue warn]: Invalid prop: custom validator check failed for prop "fileList".

[Vue warn]: Invalid prop: custom validator check failed for prop "items".

[Vue warn]: <transition-group> children must be keyed: <div>

 

后面两条真是无迹可寻,ctrl+F都没找出items和<transition-group>

 

 

 最后解决了第一条后面两条也没了:

<a-upload name="file" :before-upload="beforeUpload" list-type="picture" :multiple="false"
                :fileList="downloadFiles" :remove="handleDownloadFileRemove"
                :customRequest="downloadFilesCustomRequest">

 

 

 

a-upload绑定的fileList里有一个uid错误的取到了undefined导致的,取到正常的uid后就不报错了。

标签:三错,Vue,uid,fileList,prop,warn,Invalid,连报
来源: https://www.cnblogs.com/xwqqq/p/15671830.html