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 19ada68 commit 5949a7fCopy full SHA for 5949a7f
2 files changed
src/BootstrapBlazor/Components/Dialog/EditDialog.razor
@@ -20,10 +20,7 @@
20
</Buttons>
21
</EditorForm>
22
}
23
- @if (ShowLoading)
24
- {
25
- <div class="form-loader" id="@Id">
26
- <Spinner Color="Color.Primary" />
27
- </div>
28
- }
+ <div class="@LoadClassString" id="@Id">
+ <Spinner Color="Color.Primary" />
+ </div>
29
</ValidateForm>
src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs
@@ -74,6 +74,10 @@ public partial class EditDialog<TModel>
74
[NotNull]
75
private IStringLocalizer<EditDialog<TModel>>? Localizer { get; set; }
76
77
+ private string? LoadClassString => CssBuilder.Default("form-loader fade")
78
+ .AddClass("show", ShowLoading)
79
+ .Build();
80
+
81
/// <summary>
82
/// OnParametersSet 方法
83
/// </summary>
0 commit comments