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>
目录
相关文章
|
4月前
|
CDN
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
42 0
|
6月前
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的报错解决
【已解决】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
2570 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
7月前
|
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,
281 1
|
前端开发 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问题
1367 0
前端vue:解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
|
7月前
|
前端开发
【前端】解决: Property 'inline' does not exist on type 'ClassAttributes<HTMLElement> & HTMLAttribut...
【前端】解决: Property 'inline' does not exist on type 'ClassAttributes<HTMLElement> & HTMLAttribut...
175 0
|
7月前
使用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“问题解决
140 0
Warning: [antd: Form.Item] `defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.
Warning: [antd: Form.Item] `defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.
795 0
|
Java 编译器 Spring
报错:No fallback instance of type class**解决办法
报错:No fallback instance of type class**解决办法
1133 0
报错:No fallback instance of type class**解决办法