Home / Function/ getValue() — vue Function Reference

getValue() — vue Function Reference

Architecture documentation for the getValue() function in model.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  4b5a1b05_9c4d_d560_214e_e9dbf853a4f5["getValue()"]
  e8745e03_5237_d9bd_a77b_dbfba77d2d10["model.ts"]
  4b5a1b05_9c4d_d560_214e_e9dbf853a4f5 -->|defined in| e8745e03_5237_d9bd_a77b_dbfba77d2d10
  a9c75b6f_5b3d_195e_3668_3cc140c2883d["model()"]
  a9c75b6f_5b3d_195e_3668_3cc140c2883d -->|calls| 4b5a1b05_9c4d_d560_214e_e9dbf853a4f5
  style 4b5a1b05_9c4d_d560_214e_e9dbf853a4f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/directives/model.ts lines 29–36

function getValue(option) {
  const data = option.data || {}
  return (
    (data.attrs && data.attrs.value) ||
    (data.domProps && data.domProps.value) ||
    (option.children && option.children[0] && option.children[0].text)
  )
}

Subdomains

Called By

Frequently Asked Questions

What does getValue() do?
getValue() is a function in the vue codebase, defined in packages/server-renderer/src/directives/model.ts.
Where is getValue() defined?
getValue() is defined in packages/server-renderer/src/directives/model.ts at line 29.
What calls getValue()?
getValue() is called by 1 function(s): model.

Analyze Your Own Codebase

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

Try Supermodel Free