问题:

[Vue warn]: Invalid prop: type check failed for prop “disabled”. Expected Boolean, got String

意思是prop期待传入布尔值,而你传入的却是字符串,类型错误。

解决思路:

1、首先去vue文件中查找disabled关键字,确定传入的值是否为Boolean类型。

2、如果使用ElementUI,则需要在disabled前面加上冒号,例如

:disabled="true"

查看Element官网可知,设置输入框组件禁止输入的正确写法为 :disabled=“true”

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2021-12-04
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-13
  • 2022-01-12
  • 2021-08-29
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-10-12
相关资源
相似解决方案