From 4df81736235e0895e4f633a0a2affc3a376d4c34 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 29 Jan 2026 14:36:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=8A=BD=E5=B1=89?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Drawer/Drawer.razor.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs index fa4797085a9..9940afc7e87 100644 --- a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs +++ b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs @@ -6,15 +6,11 @@ namespace BootstrapBlazor.Components; /// -/// Drawer component +/// Drawer 抽屉组件 /// Drawer component /// public partial class Drawer { - /// - /// 获得 组件样式 - /// Get Component CSS Style - /// private string? ClassString => CssBuilder.Default("drawer collapse") .AddClass("no-bd", !ShowBackdrop) .AddClassFromAttributes(AdditionalAttributes) @@ -26,10 +22,6 @@ public partial class Drawer .AddStyleFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 抽屉 Style 字符串 - /// Get Drawer Style String - /// private string? DrawerStyleString => CssBuilder.Default() .AddClass($"--bb-drawer-width: {Width};", !string.IsNullOrEmpty(Width) && !IsVertical) .AddClass($"--bb-drawer-height: {Height};", !string.IsNullOrEmpty(Height) && IsVertical) @@ -37,10 +29,6 @@ public partial class Drawer private bool IsVertical => Placement == Placement.Top || Placement == Placement.Bottom; - /// - /// 获得 抽屉样式 - /// Get Drawer CSS Style - /// private string? DrawerClassString => CssBuilder.Default("drawer-body") .AddClass("left", Placement != Placement.Right && Placement != Placement.Top && Placement != Placement.Bottom) .AddClass("top", Placement == Placement.Top) From 53420755d9567b7a37dc1a5799a6c54cb51c274b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 29 Jan 2026 14:40:00 +0800 Subject: [PATCH 2/2] =?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/DragDrap/DragDropService.cs | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/src/BootstrapBlazor/Components/DragDrap/DragDropService.cs b/src/BootstrapBlazor/Components/DragDrap/DragDropService.cs index be00af54446..81890013309 100644 --- a/src/BootstrapBlazor/Components/DragDrap/DragDropService.cs +++ b/src/BootstrapBlazor/Components/DragDrap/DragDropService.cs @@ -6,48 +6,52 @@ namespace BootstrapBlazor.Components; /// -/// 拖拽服务 -/// Drag Drop Service +/// DragDropService 拖拽服务 +/// DragDropService component /// /// internal class DragDropService { /// - /// 活动的Item - /// Active Item + /// 获得/设置 活动的Item + /// Gets or sets Active Item /// public T? ActiveItem { get; set; } /// - /// 悬停的项目 - /// Drag Target Item + /// 获得/设置 悬停的项目 + /// Gets or sets Drag Target Item /// public T? DragTargetItem { get; set; } /// - /// 被拖拽的Items - /// Dragged Items + /// 获得/设置 被拖拽的 Items + /// Gets or sets Dragged Items /// public List? Items { get; set; } /// - /// 活动的Id - /// Active Id + /// 获得/设置 活动的 Id + /// Gets or sets Active Id /// public int? ActiveSpacerId { get; set; } /// - /// 之前的位置 - /// Previous Index + /// 获得/设置 之前的位置 + /// Gets or sets Previous Index /// public int? OldIndex { get; set; } /// - /// 通知刷新 - /// Notify StateChanged + /// 获得/设置 通知刷新方法 + /// Gets or sets Notify StateChanged /// public EventHandler? StateHasChanged { get; set; } + /// + /// 重置方法 + /// Reset method + /// public void Reset() { if (OldIndex is >= 0 && Items != null && ActiveItem != null) @@ -57,6 +61,10 @@ public void Reset() Commit(); } + /// + /// 提交方法 + /// Commit method + /// public void Commit() { ActiveItem = default;