style: Toast 组件增加 z-index 属性

This commit is contained in:
Argo Zhang 2020-04-08 11:32:15 +08:00
parent a83f9d256d
commit 71e1b0b816
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F

View File

@ -12,7 +12,7 @@ namespace BootstrapBlazor.Components
/// <summary>
/// 获得 Toast 组件样式设置
/// </summary>
protected string? StyleName => CssBuilder.Default("position: fixed;")
protected string? StyleName => CssBuilder.Default("position: fixed; z-index: 1040;")
.AddClass("top: 1rem; right: 1rem;", Placement != Placement.BottomEnd)
.AddClass("bottom: 1rem; right: 1rem;", Placement == Placement.BottomEnd)
.Build();