diff --git a/src/utils/compileSlots.ts b/src/utils/compileSlots.ts index 8494b3fe4..fd06a934b 100644 --- a/src/utils/compileSlots.ts +++ b/src/utils/compileSlots.ts @@ -28,7 +28,7 @@ export function processSlot(source = '', Vue = vue) { ) const renderFn = createRenderFunction(Vue) return (ctx = {}) => { - const result = renderFn() + const result = renderFn(ctx) const slotName = Object.keys(result.children)[0] return result.children[slotName](ctx) }