Skip to content

Commit e3bc9ab

Browse files
committed
refactor: 移除 _tab 变量
1 parent c10e573 commit e3bc9ab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/BootstrapBlazor/Components/Layout/Layout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
</main>;
132132

133133
RenderFragment RenderTab =>
134-
@<Tab ClickTabToNavigation="ClickTabToNavigation" AdditionalAssemblies="@AdditionalAssemblies" @ref="_tab"
134+
@<Tab ClickTabToNavigation="ClickTabToNavigation" AdditionalAssemblies="@AdditionalAssemblies"
135135
ShowExtendButtons="ShowTabExtendButtons" ShowClose="ShowTabItemClose" AllowDrag="AllowDragTab"
136136
DefaultUrl="@TabDefaultUrl" ExcludeUrls="@ExcludeUrls" IsOnlyRenderActiveTab="IsOnlyRenderActiveTab"
137137
TabStyle="TabStyle" ShowToolbar="@ShowToolbar" ToolbarTemplate="@ToolbarTemplate"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ public partial class Layout : IHandlerException, ITabHeader
457457
private IStringLocalizer<Layout>? Localizer { get; set; }
458458

459459
private bool _init;
460-
private Tab? _tab = null;
461460
private LayoutHeader? _layoutHeader = null;
462461

463462
private ITabHeader? TabHeader => ShowTabInHeader ? this : null;

0 commit comments

Comments
 (0)