Skip to content

Commit e29c3ac

Browse files
committed
revert: 撤销 AllowDrag 参数
1 parent 939fea8 commit e29c3ac

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
OnBeforeStateChanged="@(MaxSelectedCount > 0 ? state => TriggerBeforeStateChangedCallback(state) : null)">
1818
</Checkbox>
1919
}
20-
<DynamicElement class="@NodeClassString" TriggerClick="!ItemDisabledState" OnClick="ClickRow"
21-
draggable="@DraggableString">
20+
<DynamicElement class="@NodeClassString" TriggerClick="!ItemDisabledState" OnClick="ClickRow">
2221
@if (ShowIcon)
2322
{
2423
<i class="@IconClassString"></i>

src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ public partial class TreeViewRow<TItem>
139139
[Parameter]
140140
public Func<TItem, string?, Task<bool>>? OnUpdateCallbackAsync { get; set; }
141141

142-
/// <summary>
143-
/// Gets or sets whether the node can be dragged. Default is false.
144-
/// </summary>
145-
[Parameter]
146-
public bool AllowDrag { get; set; }
147-
148142
[Inject]
149143
[NotNull]
150144
private IOptionsMonitor<BootstrapBlazorOptions>? Options { get; set; }
@@ -180,8 +174,6 @@ public partial class TreeViewRow<TItem>
180174
.AddClass(Item.ExpandIcon, Item.IsExpand && !string.IsNullOrEmpty(Item.ExpandIcon))
181175
.Build();
182176

183-
private string? DraggableString => AllowDrag ? "true" : null;
184-
185177
private bool IsPreventDefault => ContextMenuZone != null;
186178

187179
private bool _touchStart = false;

0 commit comments

Comments
 (0)