|
|
@@ -406,7 +406,10 @@ export function genChildren (
|
|
|
el.tag !== 'template' &&
|
|
|
el.tag !== 'slot'
|
|
|
) {
|
|
|
- return (altGenElement || genElement)(el, state)
|
|
|
+ // because el may be a functional component and return an Array instead of a single root.
|
|
|
+ // In this case, just a simple normalization is needed
|
|
|
+ const normalizationType = state.maybeComponent(el) ? `,1` : ``
|
|
|
+ return `${(altGenElement || genElement)(el, state)}${normalizationType}`
|
|
|
}
|
|
|
const normalizationType = checkSkip
|
|
|
? getNormalizationType(children, state.maybeComponent)
|