Javascript – Default values for Vue prop type "Object"
Object or array defaults must be returned from a factory function (source). Example: foobar: { type: Object, default() { return {} } } // OR foobar: { type: Object, default: () => ({}) } foobar will return an empty object…