MCPcopy Create free account
hub / github.com/ygs-code/vue / genComponent

Function genComponent

vue.js:15255–15262  ·  view source on GitHub ↗
(
        componentName, //组件名称
        el,
        state
    )

Source from the content-addressed store, hash-verified

15253 // componentName is el.component, take it as argument to shun flow's pessimistic refinement
15254 //返回虚拟dom vonde渲染调用的函数
15255 function genComponent(
15256 componentName, //组件名称
15257 el,
15258 state
15259 ) {
15260 var children = el.inlineTemplate ? null : genChildren(el, state, true);
15261 return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
15262 }
15263
15264
15265 //把props 变成 一个 由 字符串对象数组

Callers 1

genElementFunction · 0.85

Calls 2

genChildrenFunction · 0.85
genData$2Function · 0.85

Tested by

no test coverage detected