13 lines
310 B
Vue
13 lines
310 B
Vue
<script setup lang="ts">
|
|
import MermaidDiagram from './MermaidDiagram.vue';
|
|
import { diagramSources } from './diagramSources';
|
|
|
|
const props = defineProps<{
|
|
name: string;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<MermaidDiagram :chart="diagramSources[props.name] || 'flowchart TB\\nA[Diagram not found]'" />
|
|
</template>
|