docs: add dagre layout example
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user