Skip to content

Commit 4c1a13f

Browse files
committed
doc: 更新文档
1 parent 1c402ff commit 4c1a13f

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ private void Navigation()
457457
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Capsule" AllowDrag="true" ShowToolbar="true">
458458
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
459459
<div>@Localizer["TabItem1Content"]</div>
460-
<Counter></Counter>
461460
</TabItem>
462461
<TabItem Text="@Localizer["TabItem2Text"]" Icon="fa-solid fa-gauge-high">
463462
<div>@Localizer["TabItem2Content"]</div>
@@ -472,10 +471,14 @@ private void Navigation()
472471
</DemoBlock>
473472

474473
<DemoBlock Title="@Localizer["TabsToolbarTitle"]" Introduction="@Localizer["TabsToolbarIntro"]" Name="Toolbar">
474+
<section ignore>
475+
<div>@((MarkupString)Localizer["TabsToolbarDesc"].Value)</div>
476+
</section>
475477
<Tab IsCard="true" ShowClose="true" TabStyle="TabStyle.Chrome" ShowToolbar="true">
476478
<ChildContent>
477479
<TabItem Text="@Localizer["TabItem1Text"]" Icon="fa-solid fa-user">
478480
<div>@Localizer["TabItem1Content"]</div>
481+
<Counter></Counter>
479482
</TabItem>
480483
<TabItem Text="@Localizer["TabItem2Text"]" Icon="fa-solid fa-gauge-high">
481484
<div>@Localizer["TabItem2Content"]</div>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,14 +2123,15 @@
21232123
"TabsCapsuleStyleIntro": "Set the capsule tab style by setting <code>TabStyle=\"TabStyle.Capsule\"</code>. Currently only supports <code>Placement=\"Placement.Top\"</code> <code>Placement=\"Placement.Bottom\"</code> mode",
21242124
"AttributeToolbarTemplate": "The template for Toolbar",
21252125
"TabsToolbarTitle": "Toolbar",
2126-
"TabsToolbarIntro": "By setting <code>ShowToolbar</code>, you can display the tab toolbar. By default, the <b>Refresh</b> and <b>Fullscreen</b> buttons are displayed. You can control whether to display them by <code>ShowRefreshToolbarButton</code> and <code>ShowFullscreenToolbarButton</code>",
2126+
"TabsToolbarIntro": "By setting <code>ShowToolbar</code>, you can display the tab toolbar. By default, the <b>Refresh</b> and <b>Fullscreen</b> buttons are displayed. You can control whether to display them by <code>ShowRefreshToolbarButton</code> and <code>ShowFullscreenToolbarButton</code>, click the <b>Refresh</b> button to trigger the <code>OnToolbarRefreshCallback</code> callback method",
21272127
"AttributeShowToolbar": "Whether to display the toolbar",
21282128
"AttributeShowRefreshToolbarButton": "Whether to display the toolbar refresh button",
21292129
"AttributeShowFullscreenToolbarButton": "Whether to display the toolbar full screen button",
21302130
"AttributeRefreshToolbarTooltipText": "Toolbar refresh button tooltip text",
21312131
"AttributeFullscreenToolbarTooltipText": "Toolbar full screen button tooltip text",
21322132
"AttributeRefreshToolbarButtonIcon": "Toolbar refresh button icon",
2133-
"AttributeFullscreenToolbarButtonIcon": "Toolbar full screen button icon"
2133+
"AttributeFullscreenToolbarButtonIcon": "Toolbar full screen button icon",
2134+
"TabsToolbarDesc": "After clicking the button, the counter value increases, and clicking the <b>Refresh</b> button on the toolbar will reset the counter."
21342135
},
21352136
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21362137
"Info": "Reset the title of this <code>TabItem</code> by click the button",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,14 +2123,15 @@
21232123
"TabsCapsuleStyleIntro": "通过设置 <code>TabStyle=\"TabStyle.Capsule\"</code> 设置标签页为胶囊样式,目前仅支持 <code>Placement=\"Placement.Top\"</code> <code>Placement=\"Placement.Bottom\"</code> 模式",
21242124
"AttributeToolbarTemplate": "Toolbar 模板",
21252125
"TabsToolbarTitle": "工具栏",
2126-
"TabsToolbarIntro": "通过设置 <code>ShowToolbar</code> 显示标签页工具栏,默认显示 <b>刷新</b> <b>全屏</b> 按钮,可以通过 <code>ShowRefreshToolbarButton</code> <code>ShowFullscreenToolbarButton</code> 控制是否显示",
2126+
"TabsToolbarIntro": "通过设置 <code>ShowToolbar</code> 显示标签页工具栏,默认显示 <b>刷新</b> <b>全屏</b> 按钮,可以通过 <code>ShowRefreshToolbarButton</code> <code>ShowFullscreenToolbarButton</code> 控制是否显示,点击 <b>刷新</b> 按钮后触发 <code>OnToolbarRefreshCallback</code> 回调方法",
21272127
"AttributeShowToolbar": "是否显示工具栏",
21282128
"AttributeShowRefreshToolbarButton": "是否显示工具栏刷新按钮",
21292129
"AttributeShowFullscreenToolbarButton": "是否显示工具栏全屏按钮",
21302130
"AttributeRefreshToolbarTooltipText": "工具栏刷新按钮提示框文字",
21312131
"AttributeFullscreenToolbarTooltipText": "工具栏全屏按钮提示框文字",
21322132
"AttributeRefreshToolbarButtonIcon": "工具栏刷新按钮图标",
2133-
"AttributeFullscreenToolbarButtonIcon": "工具栏全屏按钮图标"
2133+
"AttributeFullscreenToolbarButtonIcon": "工具栏全屏按钮图标",
2134+
"TabsToolbarDesc": "点击按钮计数器数值增加后,点击工具栏的 <b>刷新</b> 按钮计数器清零"
21342135
},
21352136
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
21362137
"Info": "点击下方按钮,本 <code>TabItem</code> 标题更改为当前分钟与秒",

0 commit comments

Comments
 (0)