mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
387234e0b9
* fix(module:table): set selectedRows exception * fix(module:table): set selectedRows exception * fix(module: tree) selected highlight confusion * Revert "fix(module: tree) selected highlight confusion" This reverts commit 91300ac664f8dcebc20f1a96e21f8afc1fac079d. * fix(module: tree): remove the IsFixed attribute Co-authored-by: James Yeung <shunjiey@hotmail.com>
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
@typeparam TItem
|
|
|
|
@if (RealDisplay)
|
|
{
|
|
<CascadingValue Value="this" Name="SelfNode">
|
|
<div @key="NodeId" class="@ClassMapper.Class" style="@Style">
|
|
|
|
<TreeIndent TreeLevel="@TreeLevel" TItem="TItem"></TreeIndent>
|
|
|
|
@if (TreeComponent.ShowExpand)
|
|
{
|
|
<TreeNodeSwitcher OnSwitcherClick="OnSwitcherClick" TItem="TItem"></TreeNodeSwitcher>
|
|
}
|
|
|
|
@if (TreeComponent.Checkable)
|
|
{
|
|
<TreeNodeCheckbox OnCheckBoxClick="OnCheckBoxClick" TItem="TItem"></TreeNodeCheckbox>
|
|
}
|
|
|
|
<TreeNodeTitle TItem="TItem"></TreeNodeTitle>
|
|
</div>
|
|
</CascadingValue>
|
|
}
|
|
<CascadingValue Value="this" Name="Node" IsFixed="@true">
|
|
@if (DataItem != null)
|
|
{
|
|
foreach (var item in ChildDataItems)
|
|
{
|
|
<TreeNode DataItem="@item" @key="item.GetHashCode()"></TreeNode>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
@Nodes
|
|
}
|
|
</CascadingValue> |