fix(edges): add missing edge class to edge wrapper

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-14 19:04:13 +01:00
committed by Braks
parent cd778715a2
commit f0f7e7e49a
9 changed files with 48 additions and 43 deletions
@@ -2,8 +2,8 @@ import type { FunctionalComponent } from 'vue'
import SmoothStepEdge from './SmoothStepEdge'
import type { EdgeProps } from '~/types'
const StepEdge: FunctionalComponent<EdgeProps> = function (props) {
return h(SmoothStepEdge, { ...props, borderRadius: 0 })
const StepEdge: FunctionalComponent<EdgeProps> = function (props, { attrs }) {
return h(SmoothStepEdge, { ...props, ...attrs, borderRadius: 0 })
}
StepEdge.props = [
@@ -21,7 +21,6 @@ StepEdge.props = [
'targetY',
'markerEnd',
'markerStart',
'style',
'interactionWidth',
]