We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380e988 commit 38516b4Copy full SHA for 38516b4
src/core/instance/render-helpers/resolve-slots.js
@@ -12,13 +12,13 @@ export function resolveSlots (
12
return slots
13
}
14
const defaultSlot = []
15
- let name, child
16
for (let i = 0, l = children.length; i < l; i++) {
17
- child = children[i]
+ const child = children[i]
18
// named slots should only be respected if the vnode was rendered in the
19
// same context.
20
if ((child.context === context || child.functionalContext === context) &&
21
- child.data && (name = child.data.slot) != null) {
+ child.data && child.data.slot != null) {
+ const name = child.data.slot
22
const slot = (slots[name] || (slots[name] = []))
23
if (child.tag === 'template') {
24
slot.push.apply(slot, child.children)
0 commit comments