Type of the default value for ‘xxx‘ prop must be a function
Type of the default value for ‘data’ prop must be a functionprops中data的默认值必须是个函数错误代码:props: { data: { type: Array, default: [] }}修改:props: { data: { type: Array, default: function () { return [] } }}或者使用箭头函数:props: { d