docs(ComponentCode): better slots handling

This commit is contained in:
Benjamin Canac
2024-12-10 11:06:51 +01:00
parent c186169562
commit 57f4d613e6

View File

@@ -237,7 +237,7 @@ const code = computed(() => {
code += `
<template #${key}>
${value}
</template>`
</template>\n`
}
}
code += (Object.keys(props.slots).length > 1 ? '\n' : '') + `</${name}>`