关于错误 Props with type Object/Array must use a factory function to return the default value.
原因是当vue传值所传类型为Object/Array时,必须使用工厂函数返回默认值。eg:
color: {
type: Array,
default: () => {
return ['#04F1BB', '#05BC8E'];
},
},
关于错误 Props with type Object/Array must use a factory function to return the default value.
原因是当vue传值所传类型为Object/Array时,必须使用工厂函数返回默认值。eg:
color: {
type: Array,
default: () => {
return ['#04F1BB', '#05BC8E'];
},
},