-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
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
The property's default value is wrong when the property type is a function #1348
Comments
tangjinzhou
pushed a commit
to tangjinzhou/vue-next
that referenced
this issue
Jun 12, 2020
AFAIK the props spec is the same as v2 Based on the docs:
If you passing a function it will be treated as a factory functions, you can fix your example by: //default: () => "some"
default: () => ()=> "some" |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0-beta.14
Reproduction link
https://jsbin.com/lumofirepo/edit?html,output
Steps to reproduce
What is expected?
this.getSome is function
What is actually happening?
this.getSome is
some
The text was updated successfully, but these errors were encountered: