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

Function mapKeyToName

packages/runtime-core/src/compat/renderHelpers.ts:103–115  ·  view source on GitHub ↗
(slots: LegacyScopedSlotsData)

Source from the content-addressed store, hash-verified

101}
102
103function mapKeyToName(slots: LegacyScopedSlotsData) {
104 for (let i = 0; i < slots.length; i++) {
105 const fn = slots[i]
106 if (fn) {
107 if (isArray(fn)) {
108 mapKeyToName(fn)
109 } else {
110 ;(fn as any).name = fn.key || 'default'
111 }
112 }
113 }
114 return slots as any
115}
116
117const staticCacheMap = /*@__PURE__*/ new WeakMap<
118 ComponentInternalInstance,

Callers 1

legacyResolveScopedSlotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected