Invalid prop: type check failed for prop “endVal”. Expected Number with value 6154.9, got String with value “6154.9”.
无效的属性:属性“endVal”的类型检查失败。期望值为6154.9的数字,得到值为“6154.9”的字符串。
提示的很明白,希望是Number类型,但是现在是 String类型
把String 转成 Number
Number(xxx)
Invalid prop: type check failed for prop “endVal”. Expected Number with value 6154.9, got String with value “6154.9”.
无效的属性:属性“endVal”的类型检查失败。期望值为6154.9的数字,得到值为“6154.9”的字符串。
提示的很明白,希望是Number类型,但是现在是 String类型
把String 转成 Number
Number(xxx)