From c42e8cd93a4a391f3cf064bc0f451d609cd19aec Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 26 May 2022 18:05:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20TabItem=20?= =?UTF-8?q?=E5=86=85=E4=B8=8D=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Tab/Tab.razor | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor b/src/BootstrapBlazor/Components/Tab/Tab.razor index 4f49ce0c5..81acd52c2 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor @@ -24,12 +24,9 @@ else {
} - @if (FirstRender) - { - - @ChildContent - - } + + @ChildContent + @if (!Items.Any() && !string.IsNullOrEmpty(DefaultUrl)) { -- Gitee From 30bd279ff661a117e7a719f158cb023291be8d6a Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 26 May 2022 18:05:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?doc:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Tab/Tab.razor | 40 ++++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor b/src/BootstrapBlazor/Components/Tab/Tab.razor index 81acd52c2..ad0016ef9 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor @@ -83,29 +83,29 @@ else
@if (IsOnlyRenderActiveTab) - { - var item = Items.FirstOrDefault(i => i.IsActive); - if (item != null) { -
- - @RenderTabItemContent(item.ChildContent) - -
+ var item = Items.FirstOrDefault(i => i.IsActive); + if (item != null) + { +
+ + @RenderTabItemContent(item.ChildContent) + +
+ } } - } - else - { - foreach (var item in Items) + else { -
- - @RenderTabItemContent(item.ChildContent) - -
+ foreach (var item in Items) + { +
+ + @RenderTabItemContent(item.ChildContent) + +
+ } } - } -
+ +
- } -- Gitee From 8864cb05021fa427c92b4270711c548844972e27 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 26 May 2022 18:06:21 +0800 Subject: [PATCH 3/3] chore: bump version 6.6.17 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index c67cddcd1..3aa578101 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 6.6.16 + 6.6.17 -- Gitee