ant-design-blazor/components/tree/Tree.razor

22 lines
621 B
C#
Raw Normal View History

@namespace AntDesign
@inherits AntDomComponentBase
<div class="@ClassMapper.Class" style="@Style">
<div class="ant-tree-list">
<div class="ant-tree-list-holder-inner">
<CascadingValue Value="this" Name="Tree">
@if (DataSource != null)
{
foreach (var item in DataSource)
{
<TreeNode DataItem="@item"></TreeNode>
2020-06-29 23:24:21 +08:00
}
}
else
2020-06-29 23:24:21 +08:00
{
@Nodes
2020-06-29 23:24:21 +08:00
}
</CascadingValue>
2020-06-29 23:24:21 +08:00
</div>
</div>
</div>