Invalid prop: type check failed for prop "value". Expected String, Number, got Array
时间: 2023-10-21 22:37:00 浏览: 186
解决vue props传Array/Object类型值,子组件报错的情况
5星 · 资源好评率100%
This error message is indicating that a component is expecting a prop called "value" to be either a string or a number, but it received an array instead.
To resolve this issue, you need to make sure that the prop "value" is being passed as a string or a number, and not an array. If you intended for "value" to be an array, you may need to update the component to handle arrays as well.
You can also check the documentation or source code of the component to see what types of values are accepted for the "value" prop.
阅读全文