diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor index 36287ac1b..873ad4dbb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor @@ -20,25 +20,30 @@

@Localizer["TabsTips4"]

-

- @Localizer["TabsInfoTitle"] -

+

@Localizer["TabsInfoTitle"]

-

- @Localizer["TabsQATitle"] -

+

@Localizer["TabsItemMenuTitle"]

+ +
services.ConfigureTabItemMenuBindOptions(op =>
+{
+    op.Binders.Add("/settings/menus", new TabItemOptionAttribute() { Text = "Menus", Icon = "fas fa-book-atlas" });
+    op.Binders.Add("/settings/roles", new TabItemOptionAttribute() { Text = "Roles", Icon = "fas fa-user-group" });
+    op.Binders.Add("/settings/users", new TabItemOptionAttribute() { Text = "Users", Icon = "fas fa-users" });
+})
+ +

@Localizer["TabsQATitle"]

-
[CascadingParameter]
+
[CascadingParameter]
 [NotNull]
 public Tab? TabSet { get; set; }
 
diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json
index d498cc2aa..d3ed8eade 100644
--- a/src/BootstrapBlazor.Server/Locales/en-US.json
+++ b/src/BootstrapBlazor.Server/Locales/en-US.json
@@ -1992,6 +1992,7 @@
     "TabsTips3": "The default behavior of this component is data segmentation,Clicking on the TabItem title does not navigate, and if you need to navigate the address bar, set the ClickTabToNavigation property to true,When you click on the TabItem title, the address bar redirects navigation, mostly for the background management system to be used in conjunction with the Menu components,The actual combat can refer to the multi-label mode in the background template simulator,  When you have Razor Component in the additional Assemblies, set the AdditionalAssemblies property value correctly so that the route within the label component is resolved correctly, and the relevant documentation [Portal]",
     "TabsTips4": "This component adapts to width height, etc., and scroll arrows can appear left and right or up and down when appropriate",
     "TabsInfoTitle": "Set additional information during tab navigation",
+    "TabsItemMenuTitle": "Configure Tab and Menu linked dictionary, this method can automatically obtain tab page properties without separately setting TabItemOption.",
     "TabsInfoItem2": "Tab properties can be set when navigating using the built-in extension method Navigator.NavigateTo(\"provider\", \"url\", \"text\", \"icon\", \"closable\")",
     "TabsInfoItem4": "Setting @attribute [TabItemOption(Text = \"LayoutPage\", Icon = \"fa-solid fa-font-awesome\")] in razor page",
     "TabsQATitle": "Q&A",
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index bd795d35b..9a43a2e3b 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -1992,6 +1992,7 @@
     "TabsTips3": "本组件默认行为为数据分割,点击 TabItem 标题时并不会进行导航行为,如果需要进行地址栏导航时请设置 ClickTabToNavigation 属性为 true,此时点击 TabItem 标题时地址栏将会重定向导航,多用于后台管理系统与 Menu 组件进行联动使用,实战可参考 后台模板模拟器 中的 多标签 模式,如果有 Razor 组件 在额外的程序集中时,请正确设置 AdditionalAssemblies 属性值,以便标签组件内路由正确解析,相关文档 [传送门]",
     "TabsTips4": "本组件会根据宽度高度等进行自适应适配,适当的时候可以出现左右或者上下的滚动箭头",
     "TabsInfoTitle": "标签页导航时设置附加信息",
+    "TabsItemMenuTitle": "配置 Tab 与 Menu 联动字典,该方法无需再单独设置 TabItemOption 即可自动获取标签页属性。",
     "TabsInfoItem2": "使用内置扩展方法 Navigator.NavigateTo(\"provider\", \"url\", \"text\", \"icon\", \"closable\") 导航时即可设置标签页属性",
     "TabsInfoItem4": "通过设置 razor 页面标签 @attribute [TabItemOption(Text = \"LayoutPage\", Icon = \"fa-solid fa-font-awesome\")]",
     "TabsQATitle": "常见问题",