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 { 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"
|
||||||
|
|||||||
@@ -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 &
|
||||||
|
|||||||
Reference in New Issue
Block a user