docs: fix additional-components imports

This commit is contained in:
wangran03
2022-10-18 11:20:51 +02:00
committed by braks
parent 37d2cd09e2
commit 90eac5743a
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
<script setup> <script setup>
import { Background, VueFlow, isNode } from '@vue-flow/core' import { VueFlow, isNode } from '@vue-flow/core'
import { Background } from '@vue-flow/additional-components'
import { ref } from 'vue' import { ref } from 'vue'
const elements = ref([ const elements = ref([
+2 -1
View File
@@ -1,6 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Connection, Edge, Elements } from '@vue-flow/core' import type { Connection, Edge, Elements } from '@vue-flow/core'
import { Background, VueFlow, addEdge } from '@vue-flow/core' import { VueFlow, addEdge } from '@vue-flow/core'
import { Background } from '@vue-flow/additional-components'
import { ref } from 'vue' import { ref } from 'vue'
import initialElements from './elements' import initialElements from './elements'
import { PathFindingEdge, PerfectArrow } from '~/index' import { PathFindingEdge, PerfectArrow } from '~/index'
+2 -1
View File
@@ -1,6 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Elements, FlowEvents } from '@vue-flow/core' import type { Elements, FlowEvents } from '@vue-flow/core'
import { Background, Controls, MiniMap, VueFlow, addEdge } from '@vue-flow/core' import { VueFlow, addEdge } from '@vue-flow/core'
import { Background, Controls, MiniMap } from '@vue-flow/additional-components'
import { ref } from 'vue' import { ref } from 'vue'
import { ResizeRotateNode } from '../src' import { ResizeRotateNode } from '../src'
import initialElements from './elements' import initialElements from './elements'