wip(ssr): v-for

This commit is contained in:
Evan You
2020-02-03 18:30:56 -05:00
parent 2ad0eed5cd
commit 93c37b94f2
5 changed files with 39 additions and 14 deletions

View File

@@ -439,8 +439,12 @@ function genNodeList(
genNode(node, context)
}
if (i < nodes.length - 1) {
comma && push(',')
multilines && newline()
if (multilines) {
comma && push(',')
newline()
} else {
comma && push(', ')
}
}
}
}