@@ -26,7 +26,7 @@ export function renderSlot(
|
||||
// this is not a user-facing function, so the fallback is always generated by
|
||||
// the compiler and guaranteed to be a function returning an array
|
||||
fallback?: () => VNodeArrayChildren,
|
||||
hasSlotted?: boolean
|
||||
noSlotted?: boolean
|
||||
): VNode {
|
||||
let slot = slots[name]
|
||||
|
||||
@@ -54,7 +54,7 @@ export function renderSlot(
|
||||
? PatchFlags.STABLE_FRAGMENT
|
||||
: PatchFlags.BAIL
|
||||
)
|
||||
if (hasSlotted && rendered.scopeId) {
|
||||
if (!noSlotted && rendered.scopeId) {
|
||||
rendered.slotScopeIds = [rendered.scopeId + '-s']
|
||||
}
|
||||
isRenderingCompiledSlot--
|
||||
|
||||
Reference in New Issue
Block a user