Skip to content

Commit b2d9dcb

Browse files
authored
doc(Tab): update documentation (#5789)
* refactor: 重构 Tab 组件增加 TabHeader 参数代替 Layout * refactor: 移除 _tab 变量 * test: 更新单元测试 * test: 更新单元测试 * doc: 更新注释 * refactor: 移除全屏按钮
1 parent bcb968f commit b2d9dcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BootstrapBlazor.Server/Components/Layout/ComponentLayout.razor

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</div>
3131

3232
<div class="tabs-coms">
33-
<Tab IsBorderCard="true" IsLazyLoadTabItem="true" ShowFullScreen="true" TabStyle="TabStyle.Chrome" ShowToolbar="true" @ref="Tab">
33+
<Tab IsBorderCard="true" IsLazyLoadTabItem="true" TabStyle="TabStyle.Chrome" ShowToolbar="true" @ref="Tab">
3434
<TabItem Text="Example" Icon="fa-solid fa-desktop">
3535
<CascadingValue Value="@RazorFileName" Name="RazorFileName">
3636
@Body
@@ -42,7 +42,7 @@
4242
<TabItem Text="C#" Icon="fa-regular fa-file-code">
4343
<Pre @key="@CSharpFileName" CodeFile="@CSharpFileName" class="code-cs"></Pre>
4444
</TabItem>
45-
<TabItem Text="@Video" Icon="fa-regular fa-file-video" ShowFullScreen="false">
45+
<TabItem Text="@Video" Icon="fa-regular fa-file-video">
4646
<Video @key="@VideoFileName" Name="@VideoFileName"></Video>
4747
<p><b>交流群</b></p>
4848
<QQGroup />

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public partial class Layout : IHandlerException, ITabHeader
262262
public Func<bool, Task>? OnCollapsed { get; set; }
263263

264264
/// <summary>
265-
/// 获得/设置 默认标签页 关闭所以标签页时自动打开此地址 默认 null 未设置
265+
/// 获得/设置 默认标签页 关闭所有标签页时自动打开此地址 默认 null 未设置
266266
/// </summary>
267267
[Parameter]
268268
public string TabDefaultUrl { get; set; } = "";

0 commit comments

Comments
 (0)