完成快速选中相关内容

This commit is contained in:
2025-11-19 23:46:22 +08:00
parent dcd61c1a88
commit 4ac44848aa
13 changed files with 125 additions and 61 deletions

View File

@@ -19,6 +19,7 @@ namespace NBF
private readonly List<object> _listData = new List<object>();
public event Action<object> OnClickItem;
public event Action<object> OnDoubleClickItem;
private int _columnsCount;
@@ -98,6 +99,10 @@ namespace NBF
void OnClickListItem(EventContext context)
{
OnClickItem?.Invoke(context.data);
if (context.inputEvent.isDoubleClick)
{
OnDoubleClickItem?.Invoke(context.data);
}
}
void OnRenderItem(int index, GObject obj)