We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
props
3.0.9
repo
<template> <h1>{{ keys }}</h1> </template> <script> import { defineComponent } from 'vue' export default defineComponent({ props: { notDefined: String, defined: { type: String, default: undefined, }, }, setup(props) { const keys = Object.keys(props); // keys: ['defined'] // instead of // keys: ['notDefined', 'defined'] return { keys } }, }); </script>
prop
foo: String
'foo in props
foo
props should contain that property foo defined
props is an empty object {}
{}
The text was updated successfully, but these errors were encountered:
Duplicate of #3288
Sorry, something went wrong.
No branches or pull requests
Version
3.0.9
Reproduction link
repo
Steps to reproduce
prop
:foo: String
'foo in props
foo
is not defined in theprops
objectWhat is expected?
props
should contain that propertyfoo
definedWhat is actually happening?
props
is an empty object{}
The text was updated successfully, but these errors were encountered: