MCPcopy Create free account
hub / github.com/MMmaXingXing/mini-vue / patch

Function patch

copy_code/src/runtime-core/renderer.ts:9–17  ·  view source on GitHub ↗
(vnode, container)

Source from the content-addressed store, hash-verified

7};
8
9export const patch = (vnode, container) => {
10 // 尽行组件处理
11 // 判断是component OR element
12 if (typeof vnode.type === "string") {
13 processElement(vnode, container);
14 } else if (isObject(vnode.type)) {
15 processComponent(vnode, container);
16 }
17};
18
19export const processElement = (vnode, container) => {
20 mountElement(vnode, container);

Callers 3

renderFunction · 0.70
mountChildrenFunction · 0.70
setupRenderEffectFunction · 0.70

Calls 3

isObjectFunction · 0.90
processElementFunction · 0.70
processComponentFunction · 0.70

Tested by

no test coverage detected