rawSlot: Function,
ctx: ComponentInternalInstance | null | undefined
): Slot => {
- const normalized = withCtx((props: any) => {
+ const normalized = withCtx((...args: any[]) => {
if (__DEV__ && currentInstance) {
warn(
`Slot "${key}" invoked outside of the render function: ` +
`Invoke the slot function inside the render function instead.`
)
}
- return normalizeSlotValue(rawSlot(props))
+ return normalizeSlotValue(rawSlot(...args))
}, ctx) as Slot
// NOT a compiled slot
;(normalized as ContextualRenderFn)._c = false