We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c2ea6 commit e064152Copy full SHA for e064152
1 file changed
src/components/BootstrapBlazor.Mermaid/Mermaid.razor.cs
@@ -90,4 +90,14 @@ private string BuildDiagramText()
90
/// </summary>
91
/// <returns></returns>
92
public Task MermaidChanged() => InvokeVoidAsync("init", Id, BuildDiagramText());
93
+
94
+ /// <summary>
95
+ /// 内容改变时重新渲染mermaid
96
+ /// </summary>
97
+ /// <returns></returns>
98
+ protected override async Task OnParametersSetAsync()
99
+ {
100
+ await base.OnParametersSetAsync();
101
+ await MermaidChanged();
102
+ }
103
}
0 commit comments