]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: save
authordaiwei <daiwei521@126.com>
Thu, 23 Jan 2025 06:59:16 +0000 (14:59 +0800)
committerdaiwei <daiwei521@126.com>
Thu, 23 Jan 2025 06:59:16 +0000 (14:59 +0800)
packages/compiler-core/src/transforms/vSlot.ts

index 1c264a3a1bc00290c9f97116f27b429d4441dbd6..b238247b9f4f111739226e0b493930f188fda3cf 100644 (file)
@@ -411,6 +411,13 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean {
       case NodeTypes.IF:
         if (hasForwardedSlots(child.branches)) return true
         break
+      case NodeTypes.SKIP:
+        if (
+          hasForwardedSlots(child.consequent.children) ||
+          hasForwardedSlots(child.alternate.children)
+        )
+          return true
+        break
       case NodeTypes.IF_BRANCH:
       case NodeTypes.FOR:
         if (hasForwardedSlots(child.children)) return true