Home / Function/ initProps() — vue Function Reference

initProps() — vue Function Reference

Architecture documentation for the initProps() function in extend.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  c750fd7d_92c7_85b0_ab1c_c459424e4fb5["initProps()"]
  a14b0815_48fb_998a_d3d7_ac867ed1d7f9["extend.ts"]
  c750fd7d_92c7_85b0_ab1c_c459424e4fb5 -->|defined in| a14b0815_48fb_998a_d3d7_ac867ed1d7f9
  ce425d9f_05ad_8df9_9c70_37c35a2bdb0e["initExtend()"]
  ce425d9f_05ad_8df9_9c70_37c35a2bdb0e -->|calls| c750fd7d_92c7_85b0_ab1c_c459424e4fb5
  7f0dd149_783c_767f_2b75_50290f62a377["initProps()"]
  c750fd7d_92c7_85b0_ab1c_c459424e4fb5 -->|calls| 7f0dd149_783c_767f_2b75_50290f62a377
  cedf6e5d_ac48_bf6f_0fc6_d75bd1082b6e["proxy()"]
  c750fd7d_92c7_85b0_ab1c_c459424e4fb5 -->|calls| cedf6e5d_ac48_bf6f_0fc6_d75bd1082b6e
  style c750fd7d_92c7_85b0_ab1c_c459424e4fb5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/global-api/extend.ts lines 82–87

function initProps(Comp: typeof Component) {
  const props = Comp.options.props
  for (const key in props) {
    proxy(Comp.prototype, `_props`, key)
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does initProps() do?
initProps() is a function in the vue codebase, defined in src/core/global-api/extend.ts.
Where is initProps() defined?
initProps() is defined in src/core/global-api/extend.ts at line 82.
What does initProps() call?
initProps() calls 2 function(s): initProps, proxy.
What calls initProps()?
initProps() is called by 1 function(s): initExtend.

Analyze Your Own Codebase

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

Try Supermodel Free