Skip to content

Commit c26e3d7

Browse files
committed
feat: 增加 TriggerDragEnd 逻辑
1 parent 693c596 commit c26e3d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
394394
{
395395
Invoke = Interop,
396396
Method = nameof(TriggerKeyDown),
397-
AllowDrag
397+
AllowDrag,
398+
TriggerDragEnd = nameof(TriggerDragEnd)
398399
});
399400

400401
private bool _keyboardArrowUpDownTrigger;
@@ -423,6 +424,12 @@ public async ValueTask TriggerKeyDown(string key)
423424
}
424425
}
425426

427+
[JSInvokable]
428+
public async ValueTask TriggerDragEnd(int originIndex, int currentIndex, bool isChildren)
429+
{
430+
431+
}
432+
426433
/// <summary>
427434
/// Client-side method to query the state of the specified row checkbox, called by JavaScript
428435
/// </summary>

0 commit comments

Comments
 (0)