使用element-ui环形进度条报错[Vue warn]: Invalid prop: custom validator check failed for prop "percentage".
标报错原因是我首次渲染是出现的不是百分比数字而是NaN![在这里插入图片描述](https://img-blog.csdnimg.cn/822e28659c104c37989fbcd56048c43e.jpeg#pic_center)
解决方法
仅供参考
v-if=" !isNaN(Math.round((editForm.hire* 100) / editForm.allNum))"
:percentage="Math.round((editForm.hire* 100) / editForm.allNum))"
<el-progress
type="circle"
v-if=" !isNaN(Math.round((editForm.hire* 100) / editForm.allNum))"
:percentage="Math.round((editForm.hire* 100) / editForm.allNum))"
:width="70" //设置组件宽度
color=" #395e93" //设置组件颜色
></el-progress>