props类型为Object/Array ,就要这样写
props: {
dataInfo: {
type: Object,
default: () => ({})
// default: {}
// default: function() {
// return [];
// }
}
},
试了好几种这个实现了
props类型为Object/Array ,就要这样写
props: {
dataInfo: {
type: Object,
default: () => ({})
// default: {}
// default: function() {
// return [];
// }
}
},
试了好几种这个实现了