-
-
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
defineCustomElement - no way to provide props declaration #11116
Comments
qcp
changed the title
defineCustomElement - no way to omit props declaration
defineCustomElement - no way to provide props declaration
Jun 12, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.4.27
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-zprxq6?file=src%2FApp.tsx
Steps to reproduce
exempleOneCe
andexempleTwoCe
exempleOneCe
- lose props,exempleTwoCe
- has propsWhat is expected?
With syntax:
exempleOneCe - on stackblitz
I expect to get props value inside setup by default.
OR
I expect to provide props declaration like in defineComponent.
What is actually happening?
I couldn't get props value with this syntax.
I couldn't provide props declaration.
Only way to do use props, is use this syntax only:
exempleTwoCe - on stackblitz
System Info
Any additional comments?
The text was updated successfully, but these errors were encountered: