|
@@ -37,6 +37,7 @@ export function renderSlot(
|
|
|
isAsyncWrapper(currentRenderingInstance!.parent) &&
|
|
isAsyncWrapper(currentRenderingInstance!.parent) &&
|
|
|
currentRenderingInstance!.parent.ce)
|
|
currentRenderingInstance!.parent.ce)
|
|
|
) {
|
|
) {
|
|
|
|
|
+ const hasProps = Object.keys(props).length > 0
|
|
|
// in custom element mode, render <slot/> as actual slot outlets
|
|
// in custom element mode, render <slot/> as actual slot outlets
|
|
|
// wrap it with a fragment because in shadowRoot: false mode the slot
|
|
// wrap it with a fragment because in shadowRoot: false mode the slot
|
|
|
// element gets replaced by injected content
|
|
// element gets replaced by injected content
|
|
@@ -47,7 +48,7 @@ export function renderSlot(
|
|
|
Fragment,
|
|
Fragment,
|
|
|
null,
|
|
null,
|
|
|
[createVNode('slot', props, fallback && fallback())],
|
|
[createVNode('slot', props, fallback && fallback())],
|
|
|
- PatchFlags.STABLE_FRAGMENT,
|
|
|
|
|
|
|
+ hasProps ? PatchFlags.BAIL : PatchFlags.STABLE_FRAGMENT,
|
|
|
)
|
|
)
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|