修改样式
This commit is contained in:
@@ -450,7 +450,7 @@ iconify-icon {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
.flowchart {
|
#mermaidSvg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|||||||
@@ -1220,7 +1220,7 @@
|
|||||||
if (!code.trim()) {
|
if (!code.trim()) {
|
||||||
throw new Error('缺少 Mermaid 代码,无法渲染');
|
throw new Error('缺少 Mermaid 代码,无法渲染');
|
||||||
}
|
}
|
||||||
const { svg } = await window.mermaid.render(renderId, code);
|
const { svg } = await window.mermaid.render("mermaidSvg", code);
|
||||||
const updatedArtifact = {
|
const updatedArtifact = {
|
||||||
...artifact,
|
...artifact,
|
||||||
svgContent: svg
|
svgContent: svg
|
||||||
|
|||||||
Reference in New Issue
Block a user