refactor(additional-components): move additional components into separate pkg

This commit is contained in:
braks
2022-10-08 23:25:34 +02:00
committed by Braks
parent 8567e3733b
commit c1bcc02797
82 changed files with 934 additions and 222 deletions
+3 -12
View File
@@ -1,16 +1,7 @@
<script lang="ts" setup>
import type {
Connection,
Edge,
Elements,
FlowEvents,
Node,
SnapGrid,
Styles,
ViewpaneTransform,
VueFlowStore,
} from '@vue-flow/core'
import { Background, Controls, MarkerType, MiniMap, VueFlow, addEdge } from '@vue-flow/core'
import type { Connection, Edge, Elements, FlowEvents, Node, SnapGrid, Styles, VueFlowStore } from '@vue-flow/core'
import { MarkerType, VueFlow, addEdge } from '@vue-flow/core'
import { Background, Controls, MiniMap } from '@vue-flow/additional-components'
const onNodeDragStart = (e: FlowEvents['nodeDragStart']) => console.log('drag start', e)
const onNodeDrag = (e: FlowEvents['nodeDrag']) => console.log('drag', e)