[FIX] slots: allow t-call and components in slot default content

This commit is contained in:
Samuel Degueldre
2021-11-24 14:13:09 +01:00
committed by Aaron Bohy
parent 5d8141a67c
commit 3f66d9fe6c
4 changed files with 133 additions and 23 deletions
+2 -2
View File
@@ -1095,9 +1095,9 @@ export class CodeGenerator {
}
if (ast.defaultContent) {
let name = this.generateId("defaultSlot");
let name = this.generateId("defaultContent");
const slot = new CodeTarget(name);
slot.signature = "ctx => {";
slot.signature = "(ctx, node, key) => {";
this.functions.push(slot);
const initialTarget = this.target;
const subCtx: Context = createContext(ctx);