Skip to content

Commit 369f2b9

Browse files
committed
feat: 增加 ModalSetings 配置类
1 parent fd92ad9 commit 369f2b9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ public class BootstrapBlazorOptions : IOptions<BootstrapBlazorOptions>
9090
/// </summary>
9191
public TableSettings TableSettings { get; set; } = new();
9292

93+
/// <summary>
94+
/// Gets or sets the <see cref="ModalSettings"/> configuration instance
95+
/// </summary>
96+
public ModalSettings ModalSettings { get; set; } = new();
97+
9398
/// <summary>
9499
/// Gets or sets the <see cref="StepSettings"/> configuration instance
95100
/// </summary>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the Apache 2.0 License
3+
// See the LICENSE file in the project root for more information.
4+
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
5+
6+
namespace BootstrapBlazor.Components;
7+
8+
/// <summary>
9+
/// Modal component settings
10+
/// </summary>
11+
public class ModalSettings
12+
{
13+
/// <summary>
14+
/// Gets or sets whether to enable fade animation, default is null
15+
/// </summary>
16+
public bool? IsFade { get; set; }
17+
}

0 commit comments

Comments
 (0)