❤ el-progress 遇到 Invalid prop: type check failed for prop “percentage“. Expected Number with value 2.06, got String with value
❤ 原因
percentage里面的数据是number类型
<el-progress v-if="e.totalCount > 0" style="width: 50%" :text-inside="true" :stroke-width="20"
:percentage="((e.fullMarksCount / e.totalCount*100).toFixed(2))">
</el-progress>
❤ 解决
添加 parseFloat 转为number类型
<el-progress v-if="e.totalCount > 0" style="width: 50%" :text-inside="true" :stroke-width="20"
:percentage="parseFloat(((e.fullMarksCount / e.totalCount*100).toFixed(2)))">
</el-progress>