mirror of https://github.com/vuejs/core.git
fix(custom-elements): respect slot props in custom element mode
This commit is contained in:
parent
55382aed58
commit
ffef822869
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue