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

can not support spread props #12

Open
matf5 opened this issue Sep 14, 2023 · 1 comment
Open

can not support spread props #12

matf5 opened this issue Sep 14, 2023 · 1 comment

Comments

@matf5
Copy link

matf5 commented Sep 14, 2023

Hi. I am using this tools to test my vue component.
I has a componentA, and it has a child componentB
componetA is written as
export default defineComponent({ setup(props): { return () => (<ComponentB { ...{ props: { ...props, ...otherProps } } > </ComponentB>) } })

But it seems ComponentB do not get the props when render

@LancerComet
Copy link
Owner

Currently this syntax is not supported and some modifications are needed. Since there's no standard for Vue JSX syntax, you might see various types of syntax. At the moment I'm not sure whether I have to support such syntax🥹

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

No branches or pull requests

2 participants