报错:vue.js:634 [Vue warn]: Invalid prop: type check failed for prop “percentage”. Expected Number with value NaN, got Function
因为 没赋初始值
{
name: '在编',
num: '',
percentage: Number, //报错
color: '#867DFF'
},
{
name: '在编',
num: '',
percentage: 0, //修改
color: '#867DFF'
},