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

fix(compiler-core): transform kebab case props to camelcase on slots (close #2488) #2490

Merged
merged 8 commits into from Nov 27, 2020

Conversation

edison1105
Copy link
Member

fix #2488

@edison1105 edison1105 changed the title fix(compiler-core): kebab case props on slots are not transformed to camelcase #2488" fix(compiler-core): kebab case props on slots are not transformed to camelcase (close #2488) Oct 27, 2020
@edison1105 edison1105 changed the title fix(compiler-core): kebab case props on slots are not transformed to camelcase (close #2488) fix(compiler-core): transform kebab case props to camelcase on slots (close #2488) Oct 27, 2020
Copy link
Member Author

@edison1105 edison1105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@knightly-bot build this

@antoniandre
Copy link

Also facing the same issue, waiting for this PR to be merged!
🚀🚀

//#2488
propsWithoutName.forEach(prop => {
if (
prop.type === NodeTypes.DIRECTIVE &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: here only v-bind args should be camelized so we should check prop.name === 'bind'. I also refactored the logic to reduce iterations from 3 to 1, see 7cd85be

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

Successfully merging this pull request may close these issues.

kebab case props on slots are not transformed to camelcase
4 participants