Files
vue-flow/src/components/Edges/StepEdge.vue
2022-02-21 20:25:17 +01:00

26 lines
600 B
Vue

<script lang="ts" setup>
import { Position } from '../../types'
import type { EdgeProps } from '../../types/edge'
import SmoothStepEdge from './SmoothStepEdge.vue'
const props = withDefaults(defineProps<EdgeProps>(), {
selected: false,
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
label: () => '',
labelStyle: () => ({}),
labelShowBg: true,
labelBgStyle: () => ({}),
})
</script>
<script lang="ts">
export default {
name: 'StepEdge',
}
</script>
<template>
<SmoothStepEdge v-bind="props" :border-radius="0">
<slot />
</SmoothStepEdge>
</template>