fix: nodes as fragments

feat: accept vnode as edge text
This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent b2b1fe822f
commit 64a4b8c418
9 changed files with 53 additions and 40 deletions
+8 -2
View File
@@ -1,4 +1,10 @@
<script lang="ts" setup></script>
<script lang="ts" setup>
interface CustomLabelProps {
text: string
}
const props = defineProps<CustomLabelProps>()
</script>
<template>
<tspan dy="10" x="0">I am a `tspan`</tspan>
<tspan dy="10" x="0">{{ props.text }}</tspan>
</template>