Closed
Description
just use vue, this works
data: {
key: undefined
}
use vue-class-component, the key
is not found
class Foo extends Vue {
key = undefined;
}
I checked the source code, should be: https://github.com/vuejs/vue-class-component/blob/master/src/data.ts#L23
if (data[key] !== undefined) {
plainData[key] = data[key]
}
the type of my key
is undefined | null
, so I cannot use null to replace undefined.
Metadata
Metadata
Assignees
Labels
No labels