wip(compiler): adjust renderSlot() signature
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user