wip(compiler): adjust renderSlot() signature

This commit is contained in:
Evan You
2019-10-03 14:29:12 -04:00
parent 306c22efe1
commit 05db2a9c6c
9 changed files with 83 additions and 67 deletions

View File

@@ -8,12 +8,14 @@ import {
} from '../vnode'
export function renderSlot(
slot: Slot | undefined,
slots: Record<string, Slot>,
key: string,
props: any = {},
// this is not a user-facing function, so the fallback is always generated by
// the compiler and gurunteed to be an array
fallback?: VNodeChildren
): VNode {
const slot = slots[key]
return (
openBlock(),
createBlock(