mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
c39e143065
* add component cascader * fix: two-way binding Co-authored-by: ElderJames <shunjiey@hotmail.com>
28 lines
556 B
C#
28 lines
556 B
C#
using System.Collections.Generic;
|
|
|
|
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?.Count > 0; } }
|
|
|
|
public IReadOnlyCollection<CascaderNode> Children { get; set; }
|
|
}
|
|
|
|
internal enum SelectedTypeEnum
|
|
{
|
|
Click,
|
|
Hover
|
|
}
|
|
}
|