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>
目录
相关文章
|
6月前
|
CDN
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
63 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
2594 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
8月前
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的报错解决
|
9月前
|
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,
326 1
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
110 0
|
前端开发 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问题
1406 0
前端vue:解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
|
9月前
使用Form报错提示If ngModel is used within a form tag, either the name attribute must be set or the form
使用Form报错提示If ngModel is used within a form tag, either the name attribute must be set or the form
|
人工智能 自然语言处理 语音技术
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“问题解决
170 0
|
JavaScript
Error Unknown option ‘--inline‘
Error Unknown option ‘--inline‘
395 0