mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
c67707a913
* 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>
30 lines
974 B
C#
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>
|