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

Function createTextVNode

vue.js:1168–1176  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1166
1167 //创建一个文本节点
1168 function createTextVNode(val) {
1169
1170 return new VNode(
1171 undefined,
1172 undefined,
1173 undefined,
1174 String(val)
1175 )
1176 }
1177
1178 // optimized shallow clone
1179 // used for static nodes and slot nodes because they may be reused across

Callers 2

normalizeChildrenFunction · 0.85
normalizeArrayChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected