使用antd vue组件时报错Invalid prop: type check failed for prop "checked". Expected Boolean, got String with value "state". found in
时间: 2023-10-19 09:29:55 浏览: 153
解决vue props传Array/Object类型值,子组件报错的情况
5星 · 资源好评率100%
您提到的错误是关于使用antd vue组件时报错"Invalid prop: type check failed for prop 'checked'. Expected Boolean, got String with value 'state'."
这个错误是因为在组件中使用了一个名为'checked'的属性,但是该属性的类型应该是Boolean,但实际上传递给该属性的值是一个String类型的值'state'。根据错误信息,我们可以看到在组件中找到了该错误。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [antd vue type check failed for prop “fileList“. Expected Array, got Function](https://blog.csdn.net/fl8545/article/details/115366743)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [vue-antd-admin::ant:Ant Design Pro与Vue的实施](https://download.csdn.net/download/weixin_42162216/15094723)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文