ant-design-blazor/components/tree/Tree.razor
BlazorPlus c67707a913 [WIP] feat: add AntTree (#112)
* feat:add AntTree

* tree - v0.2 , two mode

* feet: tree v0.2 , 2 mode

* feet:Tree

* refactor: set class on initialized

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-29 15:39:18 +08:00

30 lines
974 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<div class="@ClassMapper.Class">
<div class="@($"{PREFIX_CLS}-list")">
<div>
<div class="@($"{PREFIX_CLS}-list-holder-inner")" style="display:flex;flex-direction:column">
@if (_nodelist != null)
{
if (Checkable)
{
foreach (TreeNode node in _nodelist)
{
node?.UpdateCheckedStateRecursive(CheckStrictly);
}
}
Stack<string> pstack = new Stack<string>();
foreach (TreeNode node in _nodelist)
{
if (node == null || !node.IsVisible)
continue;
@node.RenderRecursive(this, pstack);
}
}
</div>
</div>
</div>
</div>