diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index d88b6cd7e15..0f703b035e8 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 9.4.12 + 9.5.0 diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs index 3e68e58ffad..dfa088ec917 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs @@ -417,14 +417,12 @@ public partial class Layout : IHandlerException /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. /// [Parameter] - [NotNull] public IEnumerable? AdditionalAssemblies { get; set; } /// /// 获得/设置 鼠标悬停提示文字信息 /// [Parameter] - [NotNull] public string? TooltipText { get; set; } /// @@ -453,7 +451,7 @@ public partial class Layout : IHandlerException private IStringLocalizer? Localizer { get; set; } private bool _init; - private Tab _tab = default!; + private Tab _tab = null!; /// /// @@ -483,7 +481,7 @@ protected override async Task OnInitializedAsync() if (AuthenticationStateTask != null) { // wasm 模式下 开启权限必须提供 AdditionalAssemblies 参数 - AdditionalAssemblies ??= new[] { Assembly.GetEntryAssembly()! }; + AdditionalAssemblies ??= [Assembly.GetEntryAssembly()!]; var url = Navigation.ToBaseRelativePath(Navigation.Uri); var context = RouteTableFactory.Create(AdditionalAssemblies, url); diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor.scss b/src/BootstrapBlazor/Components/Tab/Tab.razor.scss index 8865bff1506..b349a66a08b 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor.scss +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor.scss @@ -504,7 +504,7 @@ &:hover { background-color: var(--bb-tabs-item-hover-bg-color); } - } + } } .btn-fs { @@ -593,6 +593,30 @@ margin-left: -2rem; } + &:not(.active) { + &:not(:hover):not(:first-child) { + .tabs-item { + &:before { + content: ''; + width: 2px; + background-color: rgba(var(--bs-emphasis-color-rgb), .2); + position: absolute; + left: 0; + top: 8px; + bottom: 10px; + } + } + } + + &:hover + .tabs-item-wrap { + .tabs-item { + &:before { + content: none; + } + } + } + } + .tabs-item { border: none !important; border-top-left-radius: 10px;