mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
chore: Format Mermaid.vue
This commit is contained in:
parent
f2ee20fdf5
commit
fdf261bda3
@ -54,10 +54,10 @@ const renderChart = async () => {
|
|||||||
console.log('rendering chart' + props.id + props.graph);
|
console.log('rendering chart' + props.id + props.graph);
|
||||||
const hasDarkClass = document.documentElement.classList.contains('dark');
|
const hasDarkClass = document.documentElement.classList.contains('dark');
|
||||||
const mermaidConfig = {
|
const mermaidConfig = {
|
||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
startOnLoad: false,
|
startOnLoad: false,
|
||||||
theme: hasDarkClass ? 'dark' : 'default',
|
theme: hasDarkClass ? 'dark' : 'default',
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log({ mermaidConfig });
|
console.log({ mermaidConfig });
|
||||||
let svgCode = await render(props.id, decodeURIComponent(props.graph), mermaidConfig);
|
let svgCode = await render(props.id, decodeURIComponent(props.graph), mermaidConfig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user