MCPcopy
hub / github.com/ygs-code/vue / cloneASTElement

Function cloneASTElement

vue.js:14175–14182  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

14173 }
14174
14175 function cloneASTElement(el) {
14176 //转换属性,把数组属性转换成对象属性,返回对象 AST元素
14177 return createASTElement(
14178 el.tag, //标签
14179 el.attrsList.slice(), //变成真正的数组
14180 el.parent //父层节点
14181 )
14182 }
14183
14184 var model$2 = {
14185 preTransformNode: preTransformNode

Callers 1

preTransformNodeFunction · 0.85

Calls 1

createASTElementFunction · 0.85

Tested by

no test coverage detected