MCPcopy Index your code
hub / github.com/ygs-code/vue / emptyNodeAt

Function emptyNodeAt

vue.js:7987–8003  ·  view source on GitHub ↗
(elm)

Source from the content-addressed store, hash-verified

7985
7986 //创建一个vnode节点
7987 function emptyNodeAt(elm) {
7988 // tag, /*当前节点的标签名*/
7989 // data, /*当前节点对应的对象,包含了具体的一些数据信息,是一个VNodeData类型,可以参考VNodeData类型中的数据信息*/
7990 // children, //子节点
7991 // text, //文本
7992 // elm, /*当前节点*/
7993 // context, /*编译作用域*/
7994 // componentOptions, /*组件的option选项*/
7995 // asyncFactory
7996 return new VNode(
7997 nodeOps.tagName(elm).toLowerCase(),
7998 {},
7999 [],
8000 undefined,
8001 elm
8002 )
8003 }
8004
8005 //创建一个RmCb
8006 function createRmCb(

Callers 1

createPatchFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected