|
|
@ -12,7 +12,7 @@ export default function visitSlot(
|
|
|
|
const name = node.attributes.find((attribute: Node) => attribute.name);
|
|
|
|
const name = node.attributes.find((attribute: Node) => attribute.name);
|
|
|
|
const slotName = name && name.value[0].data || 'default';
|
|
|
|
const slotName = name && name.value[0].data || 'default';
|
|
|
|
|
|
|
|
|
|
|
|
generator.append(`\${options && options.slotted && options.slotted.${slotName} ? options.slotted.${slotName}() : '`);
|
|
|
|
generator.append(`\${options && options.slotted && options.slotted.${slotName} ? options.slotted.${slotName}() : \``);
|
|
|
|
|
|
|
|
|
|
|
|
generator.elementDepth += 1;
|
|
|
|
generator.elementDepth += 1;
|
|
|
|
|
|
|
|
|
|
|
@ -22,5 +22,5 @@ export default function visitSlot(
|
|
|
|
|
|
|
|
|
|
|
|
generator.elementDepth -= 1;
|
|
|
|
generator.elementDepth -= 1;
|
|
|
|
|
|
|
|
|
|
|
|
generator.append(`'}`);
|
|
|
|
generator.append(`\`}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|