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

SpreadElement in Props Object doesn't extract success #261

Open
jy0529 opened this issue Jun 21, 2022 · 2 comments
Open

SpreadElement in Props Object doesn't extract success #261

jy0529 opened this issue Jun 21, 2022 · 2 comments

Comments

@jy0529
Copy link

jy0529 commented Jun 21, 2022

Describe the bug
SpreadElement in Props Object doesn't extract success.

To Reproduce
Steps to reproduce the behavior:

  1. use props object with SpreadElement
  2. vuese/parser parse vue sfc

Expected behavior
SpreadElement Object in props can parse success

Screenshots
image

use vuese/parser. cannot extract commonProps

image

Environmental information:
For convenience, you can get environmental information by executing the vuese info command.

Additional information
Add any other information about the problem here.

@jy0529
Copy link
Author

jy0529 commented Jun 21, 2022

I think add SpreadElement ASTVisitor when processing props Object will be handle this case in parseJavascript.ts.

How about I create a PR to fixed it?

@IWANABETHATGUY
Copy link
Member

PR welcome

jy0529 pushed a commit to jy0529/vuese that referenced this issue Jun 21, 2022
jy0529 added a commit to jy0529/vuese that referenced this issue Jun 21, 2022
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