踩坑日记:Invalid prop: type check failed for prop “border“. Expected Boolean, got String withvalue “fals

Posted Jeff~李

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了踩坑日记:Invalid prop: type check failed for prop “border“. Expected Boolean, got String withvalue “fals相关的知识,希望对你有一定的参考价值。

这个错误我这里报了很多:错误的意思   border这个属性 预期的布尔值,得到的字符串值为“false” 

下面是我的代码,我们把border这个属性前面加上一个:冒号,就好了。

<van-field
          v-model="item.title"
          :disabled="item.disabled"
          :border="false"
          @change="fieldChange(item.title, index)"
        />

 

 

以上是关于踩坑日记:Invalid prop: type check failed for prop “border“. Expected Boolean, got String withvalue “fals的主要内容,如果未能解决你的问题,请参考以下文章

uniapp报错:vue.runtime.esm.js:619 [Vue warn]: Invalid prop: type check failed for prop "count&quo

Invalid prop: type check failed for prop “value”. Expected String, Number, got Array

[Vue warn]: Invalid prop: type check failed for prop "fullscreen"

Invalid prop: type check failed for prop “value“. Expected String, Number, got Array

Vue Element遇警告:[Vue warn]: Invalid prop: custom validator check failed for prop "type".(代码

Invalid prop: type check failed for prop "XXX". Expected String, got Object.