diff --git a/packages/runtime-core/src/helpers/renderSlot.ts b/packages/runtime-core/src/helpers/renderSlot.ts index a92309daee3..452fc827269 100644 --- a/packages/runtime-core/src/helpers/renderSlot.ts +++ b/packages/runtime-core/src/helpers/renderSlot.ts @@ -37,11 +37,8 @@ export function renderSlot( isAsyncWrapper(currentRenderingInstance!.parent) && currentRenderingInstance!.parent.isCE) ) { - return createVNode( - 'slot', - name === 'default' ? null : { name }, - fallback && fallback() - ) + if (name !== 'default') props.name = name + return createVNode('slot', props, fallback && fallback()) } let slot = slots[name]