Function
createElementBlock
(
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 | */ |
| 341 | export 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`. |