Home / File/ on.ts — vue Source File

on.ts — vue Source File

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

File typescript VueCore GlobalAPI 2 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  e9dd62f5_ac97_4580_4f7b_a3954dff260f["on.ts"]
  90a2398a_1498_3263_c62e_0c064dd2c9b3["index"]
  e9dd62f5_ac97_4580_4f7b_a3954dff260f --> 90a2398a_1498_3263_c62e_0c064dd2c9b3
  a80b8e3b_d720_9146_3bf6_594d4ee5dd77["compiler"]
  e9dd62f5_ac97_4580_4f7b_a3954dff260f --> a80b8e3b_d720_9146_3bf6_594d4ee5dd77
  91a91cec_898a_8a68_28b1_844eb86f59f4["index.ts"]
  91a91cec_898a_8a68_28b1_844eb86f59f4 --> e9dd62f5_ac97_4580_4f7b_a3954dff260f
  style e9dd62f5_ac97_4580_4f7b_a3954dff260f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { warn } from 'core/util/index'
import { ASTDirective, ASTElement } from 'types/compiler'

export default function on(el: ASTElement, dir: ASTDirective) {
  if (__DEV__ && dir.modifiers) {
    warn(`v-on without argument does not support modifiers.`)
  }
  el.wrapListeners = (code: string) => `_g(${code},${dir.value})`
}

Domain

Subdomains

Functions

Dependencies

  • compiler
  • index

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free