test(runtime-core): createSlots method (#119)

This commit is contained in:
Kyle Hall
2019-10-06 19:19:44 -05:00
committed by Evan You
parent 4605f43b95
commit fd1d7833e2
2 changed files with 57 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ export function createSlots(
// array of dynamic slot generated by <template v-for="..." #[...]>
if (isArray(slot)) {
for (let j = 0; j < slot.length; j++) {
slots[slot[i].name] = slot[i].fn
slots[slot[j].name] = slot[j].fn
}
} else {
// conditional single slot generated by <template v-if="..." #foo>