el-progress进度条提示Invalid prop: custom validator check failed for prop “status“

简介: el-progress进度条提示Invalid prop: custom validator check failed for prop “status“

el-progress进度条提示Invalid prop: custom validator check failed for prop “status“

报错:

报错原因:

el-progress进度条status参数值不能带“空格”或者为’ '空的单引号

解决方案:

直接赋值错误写法:

<el-progress  :status=" warning">
 </el-progress>

直接赋值正确写法:

<el-progress  :status="warning">
 </el-progress>

三元运算符错误写法:

<el-progress  :status="item1.t_state == 'normal' ? '' : item1.t_state">
 </el-progress>

三元运算符正确写法:

<el-progress  :status="item1.t_state == 'normal' ? null : item1.t_state">
 </el-progress>
目录
相关文章
|
11月前
|
小程序
小程序踩坑:Setting data field "xxxx" to undefined is invalid.
小程序踩坑:Setting data field "xxxx" to undefined is invalid.
266 0
|
2月前
|
JavaScript 前端开发
15 Uncaught TypeError: Cannot set properties of null (setting ‘onclick‘)
这篇文章解释了在HTML文档中因JavaScript代码在页面元素加载之前执行导致的"Cannot set properties of null (setting ‘onclick’)"错误,并提供了将JavaScript代码置于`<body>`标签内或使用`window.onload`事件确保DOM完全加载后再绑定事件处理器的解决办法。
15 Uncaught TypeError: Cannot set properties of null (setting ‘onclick‘)
|
4月前
Each child in a list should have a unique “key“ prop. Check the render method的报错解决
Each child in a list should have a unique “key“ prop. Check the render method的报错解决
|
5月前
|
JavaScript 前端开发
完美解决 报错 Vue Invalid prop: type check failed for prop “min“. Expected Number with value 1,
完美解决 报错 Vue Invalid prop: type check failed for prop “min“. Expected Number with value 1,
182 1
|
5月前
|
消息中间件
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
69 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
Error: Element type is invalid: expected a string (for built-in components) or a class/function
2526 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
前端开发 JavaScript
前端vue:解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
前端vue:解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
1330 0
前端vue:解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
|
11月前
|
JSON 小程序 API
小程序踩坑-Setting data field "list" to undefined is invalid.
小程序踩坑-Setting data field "list" to undefined is invalid.
277 0
|
12月前
|
人工智能 自然语言处理 语音技术
Invalid prop: type check failed for prop “index“. Expected String with value “5“问题解决
Invalid prop: type check failed for prop “index“. Expected String with value “5“问题解决
99 0