Skip to content

Commit edb4214

Browse files
committed
refactor: 增加 IsFixedTabHeader 参数
1 parent 54b79b4 commit edb4214

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/BootstrapBlazor/Components/Layout/Layout.razor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ public partial class Layout : IHandlerException
124124
[Parameter]
125125
public bool UseTabSet { get; set; }
126126

127+
/// <summary>
128+
/// 获得/设置 是否固定多标签 Header 默认 false
129+
/// </summary>
130+
[Parameter]
131+
public bool IsFixedTabHeader { get; set; }
132+
127133
/// <summary>
128134
/// 获得/设置 是否仅渲染 Active 标签
129135
/// </summary>
@@ -236,6 +242,7 @@ public partial class Layout : IHandlerException
236242
.AddClass("has-sidebar", Side != null && IsFullSide)
237243
.AddClass("has-footer", ShowFooter && Footer != null)
238244
.AddClass("is-collapsed", IsCollapsed)
245+
.AddClass("is-fixed-tab", IsFixedTabHeader && UseTabSet)
239246
.AddClassFromAttributes(AdditionalAttributes)
240247
.Build();
241248

0 commit comments

Comments
 (0)