Home / Function/ getVShowDirectiveInfo() — vue Function Reference

getVShowDirectiveInfo() — vue Function Reference

Architecture documentation for the getVShowDirectiveInfo() function in render.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8e7e138f_acad_802b_a6d7_60e684b03bdb["getVShowDirectiveInfo()"]
  4c03e6b5_515a_506e_9433_bf75e6caf6a5["renderStartingTag()"]
  4c03e6b5_515a_506e_9433_bf75e6caf6a5 -->|calls| 8e7e138f_acad_802b_a6d7_60e684b03bdb
  2be3818d_a4f3_495c_543c_ee071b428982["isDef()"]
  8e7e138f_acad_802b_a6d7_60e684b03bdb -->|calls| 2be3818d_a4f3_495c_543c_ee071b428982
  style 8e7e138f_acad_802b_a6d7_60e684b03bdb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 343–358

function getVShowDirectiveInfo(node: VNode): VNodeDirective | undefined {
  let dir: VNodeDirective
  let tmp

  while (isDef(node)) {
    if (node.data && node.data.directives) {
      tmp = node.data.directives.find(dir => dir.name === 'show')
      if (tmp) {
        dir = tmp
      }
    }
    node = node.parent!
  }
  //@ts-expect-error
  return dir
}

Subdomains

Calls

Frequently Asked Questions

What does getVShowDirectiveInfo() do?
getVShowDirectiveInfo() is a function in the vue codebase.
What does getVShowDirectiveInfo() call?
getVShowDirectiveInfo() calls 1 function(s): isDef.
What calls getVShowDirectiveInfo()?
getVShowDirectiveInfo() is called by 1 function(s): renderStartingTag.

Analyze Your Own Codebase

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

Try Supermodel Free