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
3.4.27
https://stackblitz.com/edit/vitejs-vite-zprxq6?file=src%2FApp.tsx
exempleOneCe
exempleTwoCe
With syntax:
defineCustomElement<Props>( (props) => { return () => (<b>{props.text}</b>)}, )
exempleOneCe - on stackblitz
I expect to get props value inside setup by default.
OR
I expect to provide props declaration like in defineComponent.
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:
defineCustomElement({ setup(props) { return () => (<b>TWO TEXT: {props.text}</b>)}, props: { text: { type: String, required: true } } })
exempleTwoCe - on stackblitz
System: OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz Memory: 5.95 GB / 7.54 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node npm: 10.8.1 - ~/.nvm/versions/node/v20.12.0/bin/npm npmPackages: vue: ^3.4.27 => 3.4.27
The text was updated successfully, but these errors were encountered:
fix(custom-element): support same direct setup function signature in …
e7f90b7
…defineCustomElement close #11116
7c8b126
No branches or pull requests
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: