ant-design-blazor/components/tree/TreeIndent.razor
琢磨先生 300123045f refactor(module: tree): add draggable, fix default value binding (#1517)
* 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>
2021-07-11 18:43:25 +08:00

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>