2020-06-29 15:39:18 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
2020-12-30 18:38:35 +08:00
|
|
|
|
@typeparam TItem
|
2020-06-29 15:39:18 +08:00
|
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" @ref="Ref">
|
2020-10-09 15:13:32 +08:00
|
|
|
|
<div class="ant-tree-list">
|
|
|
|
|
<div class="ant-tree-list-holder-inner">
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<CascadingValue Value="this" Name="Tree" IsFixed="@true">
|
2020-10-09 15:13:32 +08:00
|
|
|
|
@if (DataSource != null)
|
2020-06-29 15:39:18 +08:00
|
|
|
|
{
|
2020-10-09 15:13:32 +08:00
|
|
|
|
foreach (var item in DataSource)
|
2020-06-29 15:39:18 +08:00
|
|
|
|
{
|
2021-01-07 00:41:26 +08:00
|
|
|
|
<TreeNode DataItem="@item" @key="item.GetHashCode()"></TreeNode>
|
2020-06-29 23:24:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-09 15:13:32 +08:00
|
|
|
|
else
|
2020-06-29 23:24:21 +08:00
|
|
|
|
{
|
2020-10-09 15:13:32 +08:00
|
|
|
|
@Nodes
|
2020-06-29 23:24:21 +08:00
|
|
|
|
}
|
2020-10-09 15:13:32 +08:00
|
|
|
|
</CascadingValue>
|
2020-06-29 23:24:21 +08:00
|
|
|
|
</div>
|
2020-10-09 15:13:32 +08:00
|
|
|
|
</div>
|
2021-07-11 18:43:25 +08:00
|
|
|
|
</div>
|