Skip to content

Commit 260551c

Browse files
committed
doc: 更新文档
1 parent e8f32d5 commit 260551c

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ 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">
439+
<DemoBlock Title="@Localizer["TabsChromeStyleTitle"]" Introduction="@Localizer["TabsChromeStyleIntro"]" Name="TabStyle">
440+
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Chrome">
441441
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
442442
<div>@Localizer["TabItem1Content"]</div>
443443
</TabItem>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ private AttributeItem[] GetAttributes() =>
194194
DefaultValue = "false"
195195
},
196196
new()
197+
{
198+
Name = "TabStyle",
199+
Description = Localizer["TabAtt2TabStyle"].Value,
200+
Type = "enum",
201+
ValueList = "Default|Chrome",
202+
DefaultValue = "Default"
203+
},
204+
new()
197205
{
198206
Name = "IsOnlyRenderActiveTab",
199207
Description = Localizer["TabAtt3IsOnlyRenderActiveTab"].Value,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,8 @@
21172117
"AttributeButtonTemplate": "The template for Buttons",
21182118
"TabsDisabledTitle": "Disabled",
21192119
"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>"
2120+
"TabsChromeStyleTitle": "Chrome Style",
2121+
"TabsChromeStyleIntro": "Set the Chrome browser tab style by setting <code>TabStyle=\"TabStyle.Chrome\"</code>"
21222122
},
21232123
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21242124
"Info": "Reset the title of this <code>TabItem</code> by click the button",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,8 @@
21172117
"AttributeButtonTemplate": "按钮模板",
21182118
"TabsDisabledTitle": "禁用",
21192119
"TabsDisabledIntro": "通过设置 <code>IsDisabled=\"true\"</code> 禁用当前 <code>TabItem</code> 禁止点击、拖动、关闭等操作",
2120-
"TabsIsChromeStyleTitle": "Chrome 样式",
2121-
"TabsIsChromeStyleIntro": "通过设置 <code>IsChromeStyle=\"true\"</code> 设置 Chrome 浏览器标签页样式"
2120+
"TabsChromeStyleTitle": "Chrome 样式",
2121+
"TabsChromeStyleIntro": "通过设置 <code>TabStyle=\"TabStyle.Chrome\"</code> 设置 Chrome 浏览器标签页样式"
21222122
},
21232123
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21242124
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)