refactor(edges): remove v-html from template tag

This commit is contained in:
bcakmakoglu
2022-05-27 23:36:01 +02:00
committed by Braks
parent fd7fe86204
commit d4ce7b835c
2 changed files with 20 additions and 609 deletions
@@ -46,7 +46,7 @@ export default {
<text v-bind="$attrs" ref="el" class="vue-flow__edge-text" :y="box.height / 2" dy="0.3em" :style="labelStyle">
<slot>
<component :is="label" v-if="typeof label !== 'string' && typeof label" />
<template v-else v-html="label">
<template v-else>
{{ label }}
</template>
</slot>