refactor(additional-components): move additional components into separate pkg
This commit is contained in:
@@ -15,7 +15,7 @@ interface CustomEdgeProps<T = any> extends EdgeProps<T> {
|
||||
}
|
||||
|
||||
const props = defineProps<CustomEdgeProps>()
|
||||
const { id: storeId, applyEdgeChanges, getEdges } = useVueFlow()
|
||||
const { applyEdgeChanges, getEdges } = useVueFlow()
|
||||
|
||||
const onClick = (evt: Event, id: string) => {
|
||||
applyEdgeChanges([{ type: 'remove', id }])
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Edge, Node } from '@vue-flow/core'
|
||||
import { Background, Controls, MarkerType, MiniMap, VueFlow, useVueFlow } from '@vue-flow/core'
|
||||
import { MarkerType, VueFlow, useVueFlow } from '@vue-flow/core'
|
||||
import { Background, Controls, MiniMap } from '@vue-flow/additional-components'
|
||||
import CustomEdge from './CustomEdge.vue'
|
||||
import CustomEdge2 from './CustomEdge2.vue'
|
||||
import CustomLabel from './CustomLabel.vue'
|
||||
|
||||
Reference in New Issue
Block a user