|
|
|
@ -69,7 +69,6 @@ export default class SlotTemplate extends Node {
|
|
|
|
let parent = this.parent;
|
|
|
|
let parent = this.parent;
|
|
|
|
while (parent.type === 'SlotTemplateIfBlock' || parent.type === 'SlotTemplateElseBlock') parent = parent.parent;
|
|
|
|
while (parent.type === 'SlotTemplateIfBlock' || parent.type === 'SlotTemplateElseBlock') parent = parent.parent;
|
|
|
|
if (parent.type === 'IfBlock' || parent.type === 'ElseBlock') {
|
|
|
|
if (parent.type === 'IfBlock' || parent.type === 'ElseBlock') {
|
|
|
|
console.log({ parent });
|
|
|
|
|
|
|
|
return this.component.error(this, compiler_errors.invalid_mix_element_and_conditional_slot);
|
|
|
|
return this.component.error(this, compiler_errors.invalid_mix_element_and_conditional_slot);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (parent.type !== 'InlineComponent') {
|
|
|
|
if (parent.type !== 'InlineComponent') {
|
|
|
|
|