ant-design-blazor/components/tree/Tree.razor
TimChen 542b66d383 refactor: tree (#672)
* feat: refactor tree

* feat: refactor tree

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-09 15:13:32 +08:00

22 lines
621 B
C#

@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>
}
}
else
{
@Nodes
}
</CascadingValue>
</div>
</div>
</div>