Home / File/ bind.ts — vue Source File

bind.ts — vue Source File

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

File typescript CompilerSFC StyleProcessor 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  b52f0370_abf4_a419_38b7_82175469149e["bind.ts"]
  47ae9f26_59d1_fab2_349f_966f5d15495a["compiler"]
  b52f0370_abf4_a419_38b7_82175469149e --> 47ae9f26_59d1_fab2_349f_966f5d15495a
  16e3dbd8_b82d_6cfe_f578_20a33c4b2585["index.ts"]
  16e3dbd8_b82d_6cfe_f578_20a33c4b2585 --> b52f0370_abf4_a419_38b7_82175469149e
  style b52f0370_abf4_a419_38b7_82175469149e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { ASTDirective, ASTElement } from 'types/compiler'

export default function bind(el: ASTElement, dir: ASTDirective) {
  el.wrapData = (code: string) => {
    return `_b(${code},'${el.tag}',${dir.value},${
      dir.modifiers && dir.modifiers.prop ? 'true' : 'false'
    }${dir.modifiers && dir.modifiers.sync ? ',true' : ''})`
  }
}

Domain

Subdomains

Functions

Dependencies

  • compiler

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free