feat(compiler): mark compiler-generated slots for runtime

This commit is contained in:
Evan You
2019-10-03 14:08:14 -04:00
parent aa9245d55c
commit 306c22efe1
4 changed files with 48 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ export function resolveSlots(
) {
let slots: Slots | void
if (instance.vnode.shapeFlag & ShapeFlags.SLOTS_CHILDREN) {
if ((children as any)._normalized) {
if ((children as any)._compiled) {
// pre-normalized slots object generated by compiler
slots = children as Slots
} else {