props
props: {
num: {
type: [Number, String], //支持多种类型
default: 0, //默认值
},
arr: {
type: Array,
default: function () {
return [];
},
required: true, //是否必须
},
},
props
props: {
num: {
type: [Number, String], //支持多种类型
default: 0, //默认值
},
arr: {
type: Array,
default: function () {
return [];
},
required: true, //是否必须
},
},