tabLabel: {
type: Array,
default: () => (["a", "b", "c"])
}
tabLabel: {
type: Array,
default: () => ([this.$t(‘status.a‘), this.$t(‘status.b‘), this.$t(‘status.c‘)])
}
tabLabel: {
type: Array,
default () {
return [this.$t(‘status.a‘), this.$t(‘status.b‘), this.$t(‘status.c‘)]
}
}
原文:https://www.cnblogs.com/samsara-yx/p/13517230.html