refactor(core,edges): remove default val for edge style obj
This commit is contained in:
@@ -23,7 +23,7 @@ const BaseEdge: FunctionalComponent<BaseEdgeProps> = function ({
|
||||
}) {
|
||||
return [
|
||||
h('path', {
|
||||
'style': { ...style },
|
||||
'style': style,
|
||||
'd': path,
|
||||
'class': 'vue-flow__edge-path',
|
||||
'marker-end': markerEnd,
|
||||
|
||||
@@ -179,7 +179,7 @@ const Wrapper = defineComponent({
|
||||
labelBgBorderRadius: edge.labelBgBorderRadius,
|
||||
data: edge.data,
|
||||
events: { ...edge.events, ...hooks.on },
|
||||
style: (edge.style instanceof Function ? edge.style(edge) : edge.style) || {},
|
||||
style: edge.style instanceof Function ? edge.style(edge) : edge.style,
|
||||
markerStart: `url(#${getMarkerId(edge.markerStart)})`,
|
||||
markerEnd: `url(#${getMarkerId(edge.markerEnd)})`,
|
||||
sourcePosition,
|
||||
|
||||
Reference in New Issue
Block a user