ant-design-blazor/components/tree/TreeEventArgs.cs
琢磨先生 300123045f refactor(module: tree): add draggable, fix default value binding (#1517)
* delete demo docs

* fix tree default value and dnd

* fix tree line and keys

* fix switcher icon and line

* fix line demo

* fix switcher

* add DirectoryTree demo

* fix draggable demo

* clean code

* clean code

* clean up the classmapper call

* update docs

* fix the docs

* fix comment

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-11 18:43:25 +08:00

27 lines
858 B
C#

using System;
using Microsoft.AspNetCore.Components.Web;
namespace AntDesign
{
public class TreeEventArgs<TItem> : EventArgs
{
public TreeEventArgs() { }
public TreeEventArgs(Tree<TItem> tree) { Tree = tree; }
public TreeEventArgs(Tree<TItem> tree, TreeNode<TItem> node) { Tree = tree; Node = node; }
public TreeEventArgs(Tree<TItem> tree, TreeNode<TItem> node, MouseEventArgs originalEvent) { Tree = tree; Node = node; OriginalEvent = originalEvent; }
public Tree<TItem> Tree { get; set; }
public TreeNode<TItem> Node { get; set; }
/// <summary>
/// 目标节点
/// </summary>
public TreeNode<TItem> TargetNode { get; set; }
/// <summary>
/// 原生事件
/// </summary>
public MouseEventArgs OriginalEvent { get; set; }
}
}