mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
300123045f
* delete demo docs * fix tree default value and dnd * fix tree line and keys * fix switcher icon and line * fix line demo * fix switcher * add DirectoryTree demo * fix draggable demo * clean code * clean code * clean up the classmapper call * update docs * fix the docs * fix comment Co-authored-by: James Yeung <shunjiey@hotmail.com>
18 lines
513 B
C#
18 lines
513 B
C#
@namespace AntDesign
|
|
@inherits ComponentBase
|
|
@typeparam TItem
|
|
|
|
<span class="ant-tree-indent" aria-hidden="true">
|
|
@for (int i = TreeLevel; i > 0; i--)
|
|
{
|
|
if (TreeComponent.IndentTemplate != null)
|
|
{
|
|
@TreeComponent.IndentTemplate(SelfNode)
|
|
}
|
|
else
|
|
{
|
|
var node = GetParentNode(SelfNode, i);
|
|
<span class="ant-tree-indent-unit ant-tree-indent-unit-start @(node.IsLastNode?"ant-tree-indent-unit-end":"")"></span>
|
|
}
|
|
}
|
|
</span> |