-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
feat(compiler-sfc): support props name to be defined as a string #7803
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the implementation currently is elegant... 😵💫
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-sfc/__tests__/__snapshots__/compileScriptPropsTransform.spec.ts.snap
Outdated
Show resolved
Hide resolved
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider this case
We should still add quotes
packages/compiler-sfc/__tests__/compileScriptPropsTransform.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Spaces were modified during formatting
❌ Deploy Preview for vue-sfc-playground failed.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
…tring # Conflicts: # packages/compiler-sfc/src/compileScript.ts
…tring # Conflicts: # packages/compiler-sfc/src/compileScript.ts
…tring # Conflicts: # packages/compiler-sfc/src/compileScript.ts
…tring # Conflicts: # packages/compiler-sfc/__tests__/__snapshots__/compileScriptPropsTransform.spec.ts.snap # packages/compiler-sfc/src/script/defineProps.ts
…tring # Conflicts: # packages/compiler-sfc/__tests__/compileScript/__snapshots__/definePropsDestructure.spec.ts.snap
about: #7802
close: #8291
before:
compile result:
after: