mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
23dc3352a7
* feat(module: cascader): support showSearch * add empty dropdown * fix clear icon
29 lines
571 B
C#
29 lines
571 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
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; }
|
|
|
|
internal bool HasChildren { get { return Children?.Any() == true; } }
|
|
|
|
public IEnumerable<CascaderNode> Children { get; set; }
|
|
}
|
|
|
|
internal enum SelectedTypeEnum
|
|
{
|
|
Click,
|
|
Hover
|
|
}
|
|
}
|