From 7b0287e27ba7f1afd9c52af4f9d9e9a76b61d903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=BA=8B=E5=86=87=E8=AF=9A?= <505496523@qq.com> Date: Wed, 27 Apr 2022 02:27:56 +0000 Subject: [PATCH] =?UTF-8?q?!2713=20doc(#I54VKC):=20add=20IsAccordion=20doc?= =?UTF-8?q?ument=20for=20Layout=20*=20doc(#I54VKC):=20Layout=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=A2=9E=E5=8A=A0=20IsAccordion=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Shared/Locales/en.json | 3 ++- src/BootstrapBlazor.Shared/Locales/zh.json | 3 ++- src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Shared/Locales/en.json b/src/BootstrapBlazor.Shared/Locales/en.json index 784cfa0f0..d4adc7ed6 100644 --- a/src/BootstrapBlazor.Shared/Locales/en.json +++ b/src/BootstrapBlazor.Shared/Locales/en.json @@ -250,7 +250,8 @@ "Desc15": "Collection of additional programs, passed to the Tab component for use", "Desc16": "Contract expand callback delegate", "Desc17": "Call back the delegate when the menu item is clicked", - "TabDefaultUrl": "Set the default url of Tab" + "TabDefaultUrl": "Set the default url of Tab", + "IsAccordion": "Whether to set the accordion menu" }, "BootstrapBlazor.Shared.Samples.Footers": { "Title": "Footer", diff --git a/src/BootstrapBlazor.Shared/Locales/zh.json b/src/BootstrapBlazor.Shared/Locales/zh.json index 9f276f62f..68211de1b 100644 --- a/src/BootstrapBlazor.Shared/Locales/zh.json +++ b/src/BootstrapBlazor.Shared/Locales/zh.json @@ -250,7 +250,8 @@ "Desc15": "额外程序集合,传递给 Tab 组件使用", "Desc16": "收缩展开回调委托", "Desc17": "点击菜单项时回调委托", - "TabDefaultUrl": "设置 Tab 组件默认标签页" + "TabDefaultUrl": "设置 Tab 组件默认标签页", + "IsAccordion": "是否设置手风琴菜单" }, "BootstrapBlazor.Shared.Samples.Footers": { "Title": "Footer 页脚组件", diff --git a/src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs b/src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs index 45fd32236..d5427fcf4 100644 --- a/src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs +++ b/src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs @@ -108,6 +108,13 @@ public sealed partial class Layouts ValueList = "true|false", DefaultValue = "false" }, + new AttributeItem() { + Name = "IsAccordion", + Description = Localizer["IsAccordion"], + Type = "bool", + ValueList = "true|false", + DefaultValue = "false" + }, new AttributeItem() { Name = "ShowCollapseBar", Description = Localizer["Desc11"],