fix(core): add style to base edge props
This commit is contained in:
@@ -4,7 +4,7 @@ import type { BaseEdgeProps } from '../../types'
|
||||
import { isNumber } from '../../utils'
|
||||
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)
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
:id="id"
|
||||
ref="pathEl"
|
||||
:d="path"
|
||||
:style="attrs.style"
|
||||
:style="props.style"
|
||||
class="vue-flow__edge-path"
|
||||
:class="attrs.class"
|
||||
:marker-end="markerEnd"
|
||||
|
||||
@@ -200,6 +200,7 @@ export interface BaseEdgeProps extends EdgeLabelOptions {
|
||||
markerStart?: string
|
||||
markerEnd?: string
|
||||
interactionWidth?: number
|
||||
style?: CSSProperties
|
||||
}
|
||||
|
||||
export type BezierEdgeProps = EdgePositions &
|
||||
|
||||
Reference in New Issue
Block a user