2020-06-02 13:34:26 +08:00
|
|
|
|
using System.Collections.Generic;
|
2021-05-08 15:31:38 +08:00
|
|
|
|
using System.Linq;
|
2020-06-02 13:34:26 +08:00
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
|
|
|
|
public class CascaderNode
|
|
|
|
|
{
|
|
|
|
|
public string Label { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool Disabled { get; set; }
|
|
|
|
|
|
|
|
|
|
internal int Level { get; set; }
|
|
|
|
|
|
|
|
|
|
internal CascaderNode ParentNode { get; set; }
|
|
|
|
|
|
2021-05-08 15:31:38 +08:00
|
|
|
|
internal bool HasChildren { get { return Children?.Any() == true; } }
|
2020-06-02 13:34:26 +08:00
|
|
|
|
|
2021-05-08 15:31:38 +08:00
|
|
|
|
public IEnumerable<CascaderNode> Children { get; set; }
|
2020-06-02 13:34:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal enum SelectedTypeEnum
|
|
|
|
|
{
|
|
|
|
|
Click,
|
|
|
|
|
Hover
|
|
|
|
|
}
|
|
|
|
|
}
|