Home / Function/ getComponentName() — vue Function Reference

getComponentName() — vue Function Reference

Architecture documentation for the getComponentName() function in create-component.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  5b67b159_7ee7_ed13_42a0_e4b5c3befd84["getComponentName()"]
  32dec3ba_5f13_889d_402b_b05c09293bcd["_getComponentName()"]
  32dec3ba_5f13_889d_402b_b05c09293bcd -->|calls| 5b67b159_7ee7_ed13_42a0_e4b5c3befd84
  e9415a90_94de_e969_0351_990c46050d05["initExtend()"]
  e9415a90_94de_e969_0351_990c46050d05 -->|calls| 5b67b159_7ee7_ed13_42a0_e4b5c3befd84
  02cfb8c5_645e_6e81_4566_3bd5205dbeee["formatComponentName()"]
  02cfb8c5_645e_6e81_4566_3bd5205dbeee -->|calls| 5b67b159_7ee7_ed13_42a0_e4b5c3befd84
  97ceaa96_dc73_11db_99c0_3dfa1b31b53f["createComponent()"]
  97ceaa96_dc73_11db_99c0_3dfa1b31b53f -->|calls| 5b67b159_7ee7_ed13_42a0_e4b5c3befd84
  02c9b9f3_efb3_aff8_a7ef_efc398c89bbd["default.render()"]
  02c9b9f3_efb3_aff8_a7ef_efc398c89bbd -->|calls| 5b67b159_7ee7_ed13_42a0_e4b5c3befd84
  style 5b67b159_7ee7_ed13_42a0_e4b5c3befd84 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/create-component.ts lines 31–33

export function getComponentName(options: ComponentOptions) {
  return options.name || options.__name || options._componentTag
}

Domain

Subdomains

Frequently Asked Questions

What does getComponentName() do?
getComponentName() is a function in the vue codebase.
What calls getComponentName()?
getComponentName() is called by 5 function(s): _getComponentName, createComponent, default.render, formatComponentName, initExtend.

Analyze Your Own Codebase

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

Try Supermodel Free