chore(docs): replace the deprecated enum PanelPosition (#979)

This commit is contained in:
Alex Liu
2023-07-10 18:22:50 +02:00
committed by GitHub
parent 70528f8a99
commit 5669c8b101
11 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { Elements } from '@vue-flow/core'
import { Panel, PanelPosition, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Panel, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
@@ -49,7 +49,7 @@ function toggleclass() {
<Background />
<MiniMap />
<Controls />
<Panel :position="PanelPosition.TopRight" style="display: flex; gap: 5px">
<Panel position="top-right" style="display: flex; gap: 5px">
<button @click="resetTransform">reset transform</button>
<button @click="updatePos">change pos</button>
<button @click="toggleclass">toggle class</button>