feat: use v-html for node labels
* add span tag as wrapper for node labels feat(examples): * Add overview example
This commit is contained in:
@@ -16,8 +16,6 @@ const props = withDefaults(defineProps<OutputNodeProps>(), {
|
||||
</script>
|
||||
<template>
|
||||
<component :is="props.data?.label" v-if="typeof props.data?.label !== 'string'" />
|
||||
<template v-else>
|
||||
{{ props.data?.label }}
|
||||
</template>
|
||||
<span v-else v-html="props.data?.label"></span>
|
||||
<Handle type="source" :position="props.targetPosition" :is-connectable="props.connectable" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user