Skip to content

Commit 01c60f8

Browse files
committed
doc: 更新示例
1 parent 0abd931 commit 01c60f8

File tree

1 file changed

+17
-3
lines changed
  • src/BootstrapBlazor.Server/Components/Samples

1 file changed

+17
-3
lines changed

src/BootstrapBlazor.Server/Components/Samples/Tabs.razor

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,21 @@ private void Navigation()
423423
</DemoBlock>
424424

425425
<DemoBlock Title="@Localizer["TabsDragTitle"]" Introduction="@Localizer["TabsDragIntro"]" Name="AllowDrag">
426-
<Tab IsBorderCard="true" AllowDrag="true">
426+
<Tab IsBorderCard="true" AllowDrag="true" ShowToolbar="true">
427+
<TabItem Text="@Localizer["TabItem1Text"]">
428+
<div>@Localizer["TabItem1Content"]</div>
429+
</TabItem>
430+
<TabItem Text="@Localizer["TabItem2Text"]">
431+
<div>@Localizer["TabItem2Content"]</div>
432+
</TabItem>
433+
<TabItem Text="@Localizer["TabItem3Text"]">
434+
<div>@Localizer["TabItem3Content"]</div>
435+
</TabItem>
436+
</Tab>
437+
</DemoBlock>
438+
439+
<DemoBlock Title="@Localizer["TabsDragTitle"]" Introduction="@Localizer["TabsDragIntro"]" Name="AllowDrag">
440+
<Tab IsBorderCard="true" AllowDrag="true" ShowToolbar="true">
427441
<TabItem Text="@Localizer["TabItem1Text"]">
428442
<div>@Localizer["TabItem1Content"]</div>
429443
</TabItem>
@@ -437,7 +451,7 @@ private void Navigation()
437451
</DemoBlock>
438452

439453
<DemoBlock Title="@Localizer["TabsChromeStyleTitle"]" Introduction="@Localizer["TabsChromeStyleIntro"]" Name="Chrome">
440-
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Chrome" AllowDrag="true">
454+
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Chrome" AllowDrag="true" ShowToolbar="true">
441455
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
442456
<div>@Localizer["TabItem1Content"]</div>
443457
</TabItem>
@@ -454,7 +468,7 @@ private void Navigation()
454468
</DemoBlock>
455469

456470
<DemoBlock Title="@Localizer["TabsCapsuleStyleTitle"]" Introduction="@Localizer["TabsCapsuleStyleIntro"]" Name="Capsule">
457-
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Capsule" AllowDrag="true">
471+
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Capsule" AllowDrag="true" ShowToolbar="true">
458472
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
459473
<div>@Localizer["TabItem1Content"]</div>
460474
</TabItem>

0 commit comments

Comments
 (0)