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>