mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
@namespace AntDesign
|
|
@inherits ComponentBase
|
|
@typeparam TItem
|
|
|
|
<span class="@ClassMapper.Class" @onclick="OnClick">
|
|
@if (IsShowSwitchIcon)
|
|
{
|
|
@if (!SelfNode.Loading)
|
|
{
|
|
if (TreeComponent.SwitcherIconTemplate != null)
|
|
{
|
|
@TreeComponent.SwitcherIconTemplate(SelfNode)
|
|
}
|
|
else
|
|
{
|
|
<Icon Type="caret-down" Theme="outline" class="ant-tree-switcher-icon" />
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<Icon Type="loading" Theme="outline" class="ant-tree-switcher-loading-icon" />
|
|
}
|
|
|
|
}
|
|
@if (TreeComponent.ShowLine)
|
|
{
|
|
@if (!SelfNode.Loading)
|
|
{
|
|
if (TreeComponent.SwitcherIconTemplate != null)
|
|
{
|
|
@TreeComponent.SwitcherIconTemplate(SelfNode)
|
|
}
|
|
else
|
|
{
|
|
@if (IsShowLineIcon)
|
|
{
|
|
<Icon Type="@(IsSwitcherOpen ? "minus-square" : "plus-square")" Theme="outline" class="ant-tree-switcher-line-icon" />
|
|
}
|
|
else
|
|
{
|
|
<Icon Type="file" Theme="outline" class="ant-tree-switcher-line-icon" />
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<Icon Type="loading" Theme="outline" class="ant-tree-switcher-loading-icon" />
|
|
}
|
|
|
|
}
|
|
</span> |