報錯
Type of the default value for 'arrNew' prop must be a function. (vue/require-valid-default-prop)
arrNew: {
type: Array,
default:[]
}
解決
arrNew: {
type: Array,
default() {
return []
}
}
vue 父子組件傳數組eslint報錯(Type of the default value for 'arrNew' prop must be a function)