Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec

时间:2024-03-26 11:51:31

Iconfont使用报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop “hot”. Expec
错误样子
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
代码如下:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
错误提示是说期望一个Array类型,获得的却是一个Object类型,而后我把期望数据类型改了
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
结果坑爹的发现他又继续报错,如下如下所示:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
分分钟是觉得他在逗我玩。最后我就想把他变成一个不限定的看看会不会不报错:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
结果果然没有报错了,切程序运行正常,然后我在里面加入Array,也没有出现报错
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec