2020-10-09 15:13:32 +08:00
|
|
|
|
@namespace AntDesign
|
2021-01-10 18:49:52 +08:00
|
|
|
|
@inherits ComponentBase
|
2020-12-30 18:38:35 +08:00
|
|
|
|
@typeparam TItem
|
2020-10-09 15:13:32 +08:00
|
|
|
|
|
|
|
|
|
<span class="ant-tree-indent" aria-hidden="true">
|
2021-07-11 18:43:25 +08:00
|
|
|
|
@for (int i = TreeLevel; i > 0; i--)
|
2020-10-09 15:13:32 +08:00
|
|
|
|
{
|
|
|
|
|
if (TreeComponent.IndentTemplate != null)
|
|
|
|
|
{
|
|
|
|
|
@TreeComponent.IndentTemplate(SelfNode)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2021-07-11 18:43:25 +08:00
|
|
|
|
var node = GetParentNode(SelfNode, i);
|
|
|
|
|
<span class="ant-tree-indent-unit ant-tree-indent-unit-start @(node.IsLastNode?"ant-tree-indent-unit-end":"")"></span>
|
2020-10-09 15:13:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</span>
|