Home / Function/ containsSlotChild() — vue Function Reference

containsSlotChild() — vue Function Reference

Architecture documentation for the containsSlotChild() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  81263c1a_d3f2_36d9_6cee_cb6fa2511d7c["containsSlotChild()"]
  e84bda34_0c0c_e448_e78b_daf80c632a02["genScopedSlots()"]
  e84bda34_0c0c_e448_e78b_daf80c632a02 -->|calls| 81263c1a_d3f2_36d9_6cee_cb6fa2511d7c
  style 81263c1a_d3f2_36d9_6cee_cb6fa2511d7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 479–487

function containsSlotChild(el: ASTNode): boolean {
  if (el.type === 1) {
    if (el.tag === 'slot') {
      return true
    }
    return el.children.some(containsSlotChild)
  }
  return false
}

Subdomains

Called By

Frequently Asked Questions

What does containsSlotChild() do?
containsSlotChild() is a function in the vue codebase.
What calls containsSlotChild()?
containsSlotChild() is called by 1 function(s): genScopedSlots.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free