Skip to content
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

@Component({ data }) object not getting recognized in template #2766

Closed
4 tasks done
ndresx opened this issue Mar 10, 2021 · 1 comment
Closed
4 tasks done

@Component({ data }) object not getting recognized in template #2766

ndresx opened this issue Mar 10, 2021 · 1 comment
Labels

Comments

@ndresx
Copy link

ndresx commented Mar 10, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS
  • Vetur version: 0.33.1
  • VS Code version: 1.54.0

Problem

The via vue-property-decorator defined @Component decorator's data object is not getting recognized in the template. I'm not sure if that's a bug or intended, but it would be nice to support it.

image

@yoyo930021
Copy link
Member

It is a limit in typescript.
Decorator can't effect any type information in typescript.
So there is no solution to this problem.

We have some issue for solve this problem in vue-class-component.
vuejs/vue-class-component#465
vuejs/vue-class-component#416
vuejs/vue-class-component#416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants