Skip to content

Commit d534481

Browse files
committed
doc: 增加示例文档
1 parent b4f9d5d commit d534481

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,23 @@ private void Navigation()
436436
</Tab>
437437
</DemoBlock>
438438

439+
<DemoBlock Title="@Localizer["TabsIsChromeStyleTitle"]" Introduction="@Localizer["TabsIsChromeStyleIntro"]" Name="IsChromeStyle">
440+
<Tab IsCard="true" ShowClose="true" IsChromeStyle="true">
441+
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
442+
<div>@Localizer["TabItem1Content"]</div>
443+
</TabItem>
444+
<TabItem Text="@Localizer["TabItem2Text"]" Icon="fa-solid fa-gauge-high">
445+
<div>@Localizer["TabItem2Content"]</div>
446+
</TabItem>
447+
<TabItem Text="@Localizer["TabItem3Text"]" Icon="fa-solid fa-sitemap">
448+
<div>@Localizer["TabItem3Content"]</div>
449+
</TabItem>
450+
<TabItem Text="@Localizer["TabItem4Text"]" Icon="fa-solid fa-building-columns">
451+
<div>@Localizer["TabItem4Content"]</div>
452+
</TabItem>
453+
</Tab>
454+
</DemoBlock>
455+
439456
<AttributeTable Items="@GetAttributes()" Title="@Localizer["AttTitle"]" />
440457

441458
<MethodTable Items="@GetMethods()" Title="@Localizer["MethodTitle"]" />

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,9 @@
21162116
"AttributeExcludeUrls": "Exclude address support for wildcards",
21172117
"AttributeButtonTemplate": "The template for Buttons",
21182118
"TabsDisabledTitle": "Disabled",
2119-
"TabsDisabledIntro": "Disable the current <code>TabItem</code> by setting <code>IsDisabled=\"true\"</code> to prohibit click, drag, close etc."
2119+
"TabsDisabledIntro": "Disable the current <code>TabItem</code> by setting <code>IsDisabled=\"true\"</code> to prohibit click, drag, close etc.",
2120+
"TabsIsChromeStyleTitle": "Chrome Style",
2121+
"TabsIsChromeStyleIntro": "Set the Chrome browser tab style by setting <code>IsChromeStyle=\"true\"</code>"
21202122
},
21212123
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21222124
"Info": "Reset the title of this <code>TabItem</code> by click the button",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,9 @@
21162116
"AttributeExcludeUrls": "排除地址支持通配符",
21172117
"AttributeButtonTemplate": "按钮模板",
21182118
"TabsDisabledTitle": "禁用",
2119-
"TabsDisabledIntro": "通过设置 <code>IsDisabled=\"true\"</code> 禁用当前 <code>TabItem</code> 禁止点击、拖动、关闭等操作"
2119+
"TabsDisabledIntro": "通过设置 <code>IsDisabled=\"true\"</code> 禁用当前 <code>TabItem</code> 禁止点击、拖动、关闭等操作",
2120+
"TabsIsChromeStyleTitle": "Chrome 样式",
2121+
"TabsIsChromeStyleIntro": "通过设置 <code>IsChromeStyle=\"true\"</code> 设置 Chrome 浏览器标签页样式"
21202122
},
21212123
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21222124
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)