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;
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)