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

Function normalizeSlotValue

packages/runtime-core/src/componentSlots.ts:87–90  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

85 key === '_' || key === '_ctx' || key === '$stable'
86
87const normalizeSlotValue = (value: unknown): VNode[] =>
88 isArray(value)
89 ? value.map(normalizeVNode)
90 : [normalizeVNode(value as VNodeChild)]
91
92const normalizeSlot = (
93 key: string,

Callers 3

normalizeSlotFunction · 0.85
normalizeObjectSlotsFunction · 0.85
normalizeVNodeSlotsFunction · 0.85

Calls 2

normalizeVNodeFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected