wip(ssr): renderer support for optimized and manual slots

This commit is contained in:
Evan You
2020-01-28 22:58:02 -05:00
parent a7b0954f14
commit 6b1ce00621
9 changed files with 86 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
import { Data } from '../component'
import { Slot } from '../componentSlots'
import {
VNodeChildren,
VNodeArrayChildren,
openBlock,
createBlock,
Fragment,
@@ -15,7 +15,7 @@ export function renderSlot(
props: Data = {},
// this is not a user-facing function, so the fallback is always generated by
// the compiler and guaranteed to be an array
fallback?: VNodeChildren
fallback?: VNodeArrayChildren
): VNode {
const slot = slots[name]
return (