fix(custom-elements): respect slot props in custom element mode

This commit is contained in:
Evan You 2022-11-11 16:05:07 +08:00
parent 55382aed58
commit ffef822869
1 changed files with 2 additions and 5 deletions

View File

@ -37,11 +37,8 @@ export function renderSlot(
isAsyncWrapper(currentRenderingInstance!.parent) && isAsyncWrapper(currentRenderingInstance!.parent) &&
currentRenderingInstance!.parent.isCE) currentRenderingInstance!.parent.isCE)
) { ) {
return createVNode( if (name !== 'default') props.name = name
'slot', return createVNode('slot', props, fallback && fallback())
name === 'default' ? null : { name },
fallback && fallback()
)
} }
let slot = slots[name] let slot = slots[name]