We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d855027 commit b32c4b6Copy full SHA for b32c4b6
src/core/vdom/helpers/normalize-scoped-slots.js
@@ -19,7 +19,7 @@ export function normalizeScopedSlots (
19
}
20
// expose normal slots on scopedSlots
21
for (const key in normalSlots) {
22
- res[key] = () => normalSlots[key]
+ res[key] = proxyNormalSlot(normalSlots, key)
23
24
res._normalized = true
25
return res
@@ -31,3 +31,7 @@ function normalizeScopedSlot(fn: Function) {
31
return Array.isArray(res) ? res : res ? [res] : res
32
33
34
+
35
+function proxyNormalSlot(slots, key) {
36
+ return () => slots[key]
37
+}
0 commit comments