MCPcopy
hub / github.com/vuejs/core / createElementBlock

Function createElementBlock

packages/runtime-core/src/vnode.ts:341–360  ·  view source on GitHub ↗
(
  type: string | typeof Fragment,
  props?: Record<string, any> | null,
  children?: any,
  patchFlag?: number,
  dynamicProps?: string[],
  shapeFlag?: number,
)

Source from the content-addressed store, hash-verified

339 * @private
340 */
341export function createElementBlock(
342 type: string | typeof Fragment,
343 props?: Record<string, any> | null,
344 children?: any,
345 patchFlag?: number,
346 dynamicProps?: string[],
347 shapeFlag?: number,
348): VNode {
349 return setupBlock(
350 createBaseVNode(
351 type,
352 props,
353 children,
354 patchFlag,
355 dynamicProps,
356 shapeFlag,
357 true /* isBlock */,
358 ),
359 )
360}
361
362/**
363 * Create a block root vnode. Takes the same exact arguments as `createVNode`.

Callers 10

renderFunction · 0.85
setupFunction · 0.85
hydration.spec.tsFile · 0.85
setupFunction · 0.85
renderFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
renderFunction · 0.85
setupFunction · 0.85

Calls 2

setupBlockFunction · 0.85
createBaseVNodeFunction · 0.85

Tested by 8

renderFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
renderFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
renderFunction · 0.68
setupFunction · 0.68