-
-
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
fix(compiler-core): transform kebab case props to camelcase on slots (close #2488) #2490
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.
@knightly-bot build this
Also facing the same issue, waiting for this PR to be merged! |
//#2488 | ||
propsWithoutName.forEach(prop => { | ||
if ( | ||
prop.type === NodeTypes.DIRECTIVE && |
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.
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
fix #2488