Skip to content

Commit

Permalink
fix(compiler-core): transform kebab case props to camelcase on slots (c…
Browse files Browse the repository at this point in the history
…lose vuejs#2488)
  • Loading branch information
edison1105 committed Nov 10, 2020
1 parent 1ce4110 commit fe16b54
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/compiler-core/src/transforms/transformSlotOutlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export function processSlotOutlet(
? node.props.filter(p => p !== name)
: node.props

//#2488
propsWithoutName.forEach(prop => {
const arg = (prop as any).arg
if (arg) {
arg.content = camelize(arg.content)
}
})

if (propsWithoutName.length > 0) {
//#2488
propsWithoutName.forEach(prop => {
const arg = (prop as any).arg
if (arg) {
arg.content = camelize(arg.content)
}
})

const { props, directives } = buildProps(node, context, propsWithoutName)
slotProps = props

Expand Down

0 comments on commit fe16b54

Please sign in to comment.