From d006f843ff99a6d9ba0a90d9c041fee92b3c38f6 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 3 Mar 2026 10:32:11 +0800 Subject: [PATCH 1/4] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Message/Message.razor.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/BootstrapBlazor/Components/Message/Message.razor.cs b/src/BootstrapBlazor/Components/Message/Message.razor.cs index b39336d6969..3deb0b0ceec 100644 --- a/src/BootstrapBlazor/Components/Message/Message.razor.cs +++ b/src/BootstrapBlazor/Components/Message/Message.razor.cs @@ -33,13 +33,9 @@ public partial class Message [Parameter] public Placement Placement { get; set; } = Placement.Top; - /// - /// ToastServices 服务实例 - /// MessageService Service Instance - /// [Inject] [NotNull] - public MessageService? MessageService { get; set; } + private MessageService? MessageService { get; set; } /// /// @@ -92,7 +88,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 设置 容器位置方法 /// Set Container Placement Method /// - /// public void SetPlacement(Placement placement) { Placement = placement; @@ -134,7 +129,6 @@ public void Clear(string id) /// OnDismiss 回调方法 由 JSInvoke 触发 /// OnDismiss Callback Method. Triggered by JSInvoke /// - /// [JSInvokable] public async ValueTask Dismiss(string id) { From 2683e6150515a9590949db4c22c9be5ee29de041 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 3 Mar 2026 10:32:16 +0800 Subject: [PATCH 2/4] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Marquee/Marquee.razor.cs | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs b/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs index b3762ac1397..92b2b5348e9 100644 --- a/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs +++ b/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs @@ -7,38 +7,34 @@ namespace BootstrapBlazor.Components; /// /// Marquee 字幕滚动组件 -/// Marquee 字幕滚动component +/// Marquee scrolling component /// public partial class Marquee { /// /// 获得/设置 组件值 显示文本 默认 Empty - /// Gets or sets component值 display文本 Default is Empty + /// Gets or sets the component's display text. Default is Empty. /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 组件值 文本颜色 默认 #000 支持16进制和颜色名称 - /// - /// Gets or sets component值 文本color Default is #000 支持16进制和color名称 - /// + /// 获得/设置 组件值 文本颜色 默认 #000 支持16进制和颜色名称 + /// Gets or sets the component's text color. Default is #000 Supports hexadecimal and color names /// [Parameter] public string Color { get; set; } = "#000"; /// - /// 获得/设置 组件值 背景颜色 默认 #fff 支持16进制和颜色名称 - /// - /// Gets or sets component值 背景color Default is #fff 支持16进制和color名称 - /// + /// 获得/设置 组件值 背景颜色 默认 #fff 支持16进制和颜色名称 + /// Gets or sets the component's background color. Default is #fff Supports hexadecimal and color names /// [Parameter] public string BackgroundColor { get; set; } = "#fff"; /// /// 获得/设置 组件值 文本大小 默认 72px - /// Gets or sets component值 文本大小 Default is 72px + /// Gets or sets the component's text size. Default is 72px /// [Parameter] public int FontSize { get; set; } = 72; @@ -46,7 +42,7 @@ public partial class Marquee /// /// 获得/设置 组件值 动画时间 默认 14s 值越小滚动越快 /// - /// Gets or sets component值 动画时间 Default is 14s 值越小滚动越快 + /// Gets or sets the component's animation duration. Default is 14s The smaller the value, the faster the scroll /// /// [Parameter] @@ -54,7 +50,7 @@ public partial class Marquee /// /// 获得/设置 组件值 滚动方向 默认 LeftToRight - /// Gets or sets component值 滚动方向 Default is LeftToRight + /// Gets or sets the component's scroll direction. Default is LeftToRight /// [Parameter] public MarqueeDirection Direction { get; set; } From 26141b84a0ab64937842a9dbc1c8e461cb5f0122 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 3 Mar 2026 10:32:37 +0800 Subject: [PATCH 3/4] =?UTF-8?q?doc(MaskService):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Mask/MaskService.cs | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/BootstrapBlazor/Components/Mask/MaskService.cs b/src/BootstrapBlazor/Components/Mask/MaskService.cs index 586df9bb802..7340491ef08 100644 --- a/src/BootstrapBlazor/Components/Mask/MaskService.cs +++ b/src/BootstrapBlazor/Components/Mask/MaskService.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// MaskService 遮罩服务 -/// MaskService +/// MaskService Mask Service /// public class MaskService : BootstrapServiceBase { @@ -15,16 +15,28 @@ public class MaskService : BootstrapServiceBase /// 显示 Mask 方法 /// Show Mask Method /// - /// 遮罩配置信息实体类Mask Configuration Information Entity Class - /// 组件实例 Component Instance + /// + /// 遮罩配置信息实体类 + /// Mask Configuration Information Entity Class + /// + /// + /// 组件实例 + /// Component Instance + /// public Task Show(MaskOption option, Mask? mask = null) => Invoke(option, mask); /// /// 关闭 Mask 方法 /// Close Mask Method /// - /// 组件实例 Component Instance - /// 是否关闭所有遮罩 默认 false 仅关闭当前或者指定遮罩Whether to close all masks. Default false. Only close current or specified mask + /// + /// 组件实例 + /// Component Instance + /// + /// + /// 是否关闭所有遮罩 默认 false 仅关闭当前或者指定遮罩 + /// Whether to close all masks. Default false. Only close current or specified mask + /// public async Task Close(Mask? mask = null, bool all = false) { if (all) From 7e923a1b498f15e72ecf4333e8ae0cf673f32b07 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 3 Mar 2026 10:32:48 +0800 Subject: [PATCH 4/4] =?UTF-8?q?doc(Menu):=20=E6=9B=B4=E6=96=B0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Menu/Menu.razor.cs | 9 ++++----- src/BootstrapBlazor/Components/Menu/MenuItem.cs | 15 ++++++++++++--- .../Components/Menu/SubMenu.razor.cs | 9 ++------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs index b59dd54eb73..57ada9c41f0 100644 --- a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs @@ -48,8 +48,8 @@ public partial class Menu /// Gets or sets Whether it is accordion effect. Default false /// /// - /// 启用此功能时 参数不生效 - /// parameter does not take effect when this feature is enabled + /// 启用此功能时 参数不生效 + /// parameter does not take effect when this feature is enabled /// [Parameter] public bool IsAccordion { get; set; } @@ -59,8 +59,8 @@ public partial class Menu /// Gets or sets Whether to expand all. Default false /// /// - /// 手风琴效果 时此参数不生效 - /// This parameter does not take effect when accordion effect is enabled + /// 手风琴效果 时此参数不生效 + /// This parameter does not take effect when accordion effect is enabled /// [Parameter] public bool IsExpandAll { get; set; } @@ -76,7 +76,6 @@ public partial class Menu /// 获得/设置 侧栏垂直模式 默认 false /// Gets or sets Sidebar vertical mode. Default false /// - /// [Parameter] public bool IsVertical { get; set; } diff --git a/src/BootstrapBlazor/Components/Menu/MenuItem.cs b/src/BootstrapBlazor/Components/Menu/MenuItem.cs index ce54536c3fa..3a8c00c65e4 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuItem.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuItem.cs @@ -59,9 +59,18 @@ public MenuItem() { } /// 带参数构造函数 /// Parameterized Constructor /// - /// 显示文本Display Text - /// 菜单地址Menu Url - /// 菜单图标Menu Icon + /// + /// 显示文本 + /// Display Text + /// + /// + /// 菜单地址 + /// Menu Url + /// + /// + /// 菜单图标 + /// Menu Icon + /// public MenuItem(string text, string? url = null, string? icon = null) { Text = text; diff --git a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs index bceb9b83800..c75acf071cb 100644 --- a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// 子菜单组件内部使用不推荐直接使用此组件 +/// SubMenu component for internal use only. Direct usage is not recommended. /// public sealed partial class SubMenu { @@ -67,11 +67,6 @@ public sealed partial class SubMenu [NotNull] private IStringLocalizer? Localizer { get; set; } - /// - /// 获得 样式字符串 - /// Get Style String - /// - /// private static string? GetClassString(MenuItem item) => CssBuilder.Default() .AddClass("active", !item.IsDisabled && item.IsActive) .AddClass("disabled", item.IsDisabled)