Skip to content

Commit c4fd31d

Browse files
committed
feat(Tab): add ShowActiveBar parameter
1 parent e339197 commit c4fd31d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/BootstrapBlazor/Components/Tab/Tab.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ else
8181
<div class="tabs-item-fix"></div>
8282
}
8383
</RenderTemplate>
84-
@if (!IsCard && !IsBorderCard)
84+
@if (!IsCard && !IsBorderCard && ShowActiveBar)
8585
{
8686
<div class="tabs-active-bar"></div>
8787
}

src/BootstrapBlazor/Components/Tab/Tab.razor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ public partial class Tab : IHandlerException
131131
[Parameter]
132132
public bool ShowNavigatorButtons { get; set; } = true;
133133

134+
/// <summary>
135+
/// 获得/设置 是否显示活动标签 默认为 true 显示
136+
/// </summary>
137+
[Parameter]
138+
public bool ShowActiveBar { get; set; } = true;
139+
134140
/// <summary>
135141
/// 获得/设置 点击 TabItem 时是否自动导航 默认为 false 不导航
136142
/// </summary>

0 commit comments

Comments
 (0)