Home / File/ show.ts — vue Source File

show.ts — vue Source File

Architecture documentation for show.ts, a typescript file in the vue codebase. 1 imports, 1 dependents.

File typescript ServerRenderer BundleRenderer 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  6eef19e8_24ef_07ad_282b_280778719d3c["show.ts"]
  ba925ef2_b0f4_efe3_c23d_fe293c46b2c1["vnode"]
  6eef19e8_24ef_07ad_282b_280778719d3c --> ba925ef2_b0f4_efe3_c23d_fe293c46b2c1
  46a6b9a7_36e9_3c32_fe1c_dd07fd47f339["index.ts"]
  46a6b9a7_36e9_3c32_fe1c_dd07fd47f339 --> 6eef19e8_24ef_07ad_282b_280778719d3c
  style 6eef19e8_24ef_07ad_282b_280778719d3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { VNodeDirective, VNodeWithData } from 'types/vnode'

export default function show(node: VNodeWithData, dir: VNodeDirective) {
  if (!dir.value) {
    const style: any = node.data.style || (node.data.style = {})
    if (Array.isArray(style)) {
      style.push({ display: 'none' })
    } else {
      style.display = 'none'
    }
  }
}

Subdomains

Functions

Dependencies

  • vnode

Frequently Asked Questions

What does show.ts do?
show.ts is a source file in the vue codebase, written in typescript. It belongs to the ServerRenderer domain, BundleRenderer subdomain.
What functions are defined in show.ts?
show.ts defines 1 function(s): show.
What does show.ts depend on?
show.ts imports 1 module(s): vnode.
What files import show.ts?
show.ts is imported by 1 file(s): index.ts.
Where is show.ts in the architecture?
show.ts is located at packages/server-renderer/src/directives/show.ts (domain: ServerRenderer, subdomain: BundleRenderer, directory: packages/server-renderer/src/directives).

Analyze Your Own Codebase

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

Try Supermodel Free