Invalid prop: type check failed for prop "hideDetails". Expected Boolean, got String with value "true".
时间: 2023-09-23 17:06:19 浏览: 181
这个报错是由于在传递给组件的属性中,使用了错误的数据类型。具体来说,属性"hideRequiredAsterisk"需要布尔类型的值,但是传递了一个字符串类型的值。 [1 [2]
解决这个问题的方法是将属性的值更改为布尔类型。在这种情况下,你需要将字符串值"true"更改为布尔值true。这样做可以解决这个报错。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [❤ Invalid prop: type check failed for prop “hideRequiredAsterisk“. Expected Boolean, got String ...](https://blog.csdn.net/weixin_43615570/article/details/127083639)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Invalid prop: type check failed for prop “clearable“. Expected Boolean, got String with value ...](https://blog.csdn.net/weixin_53579656/article/details/131075703)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文