fix(core): add style to base edge props

This commit is contained in:
braks
2023-07-10 19:20:26 +02:00
committed by Braks
parent b2dc046fe9
commit 38bb4e1e12
2 changed files with 3 additions and 2 deletions
@@ -4,7 +4,7 @@ import type { BaseEdgeProps } from '../../types'
import { isNumber } from '../../utils' import { isNumber } from '../../utils'
import EdgeText from './EdgeText.vue' import EdgeText from './EdgeText.vue'
const { interactionWidth = 20, labelShowBg = true } = defineProps<BaseEdgeProps>() const { interactionWidth = 20, labelShowBg = true, ...props } = defineProps<BaseEdgeProps>()
const pathEl = ref<SVGPathElement | null>(null) const pathEl = ref<SVGPathElement | null>(null)
@@ -34,7 +34,7 @@ export default {
:id="id" :id="id"
ref="pathEl" ref="pathEl"
:d="path" :d="path"
:style="attrs.style" :style="props.style"
class="vue-flow__edge-path" class="vue-flow__edge-path"
:class="attrs.class" :class="attrs.class"
:marker-end="markerEnd" :marker-end="markerEnd"
+1
View File
@@ -200,6 +200,7 @@ export interface BaseEdgeProps extends EdgeLabelOptions {
markerStart?: string markerStart?: string
markerEnd?: string markerEnd?: string
interactionWidth?: number interactionWidth?: number
style?: CSSProperties
} }
export type BezierEdgeProps = EdgePositions & export type BezierEdgeProps = EdgePositions &