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) &&
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]