Browse Source

should not generate children for "is" component with inline-template (fix #3931)

dev
Evan You 8 years ago
parent
commit
a675221bb6
  1. 2
      src/compiler/codegen/index.js

2
src/compiler/codegen/index.js

@ -230,7 +230,7 @@ function genSlot (el: ASTElement): string {
}
function genComponent (el: any): string {
const children = genChildren(el)
const children = el.inlineTemplate ? null : genChildren(el)
return `_h(${el.component},${genData(el)}${
children ? `,${children}` : ''
})`

Loading…
Cancel
Save