docs: add dagre layout example

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 0bfb5f4046
commit 3220e20c0e
13 changed files with 192 additions and 40 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import CodeMirror from '@vue/repl/codemirror-editor'
import { useVueFlow } from '@vue-flow/core'
import { exampleImports } from '../examples'
const props = defineProps<{ example: keyof typeof exampleImports; mainFile?: string; dependencies?: Record<string, string> }>()
const props = defineProps<{ example: keyof typeof exampleImports; mainFile?: string }>()
const { vueFlowVersion } = useVueFlow()
+1 -1
View File
@@ -4,7 +4,7 @@ import { Suspense } from 'vue'
const DocsRepl = defineAsyncComponent(() => import('./DocsRepl.vue'))
export default defineComponent({
props: ['example', 'examplesImports', 'dependencies'],
props: ['example', 'mainFile'],
setup(props) {
return () => {
if (typeof navigator === 'undefined') {