mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: tabs): Exception caused by cascade assignment to TabTemplate (#1708)
This commit is contained in:
parent
6705eb23e5
commit
486f6cb6cf
@ -4,11 +4,16 @@
|
||||
<Tabs Class="@Class" Style="@Style" Id="@Id" HideAdd Type="@TabType.EditableCard" @bind-ActiveKey="@CurrentUrl" OnClose="RemovePage">
|
||||
@foreach (var item in Pages)
|
||||
{
|
||||
<TabPane @key="@item.Url" TabTemplate="@item.Title" Key="@item.Url" Class="@TabPaneClass" Closable ForceRender>
|
||||
<TabPane @key="@item.Url" Key="@item.Url" Class="@TabPaneClass" Closable ForceRender>
|
||||
<TabTemplate>
|
||||
@item.Title
|
||||
</TabTemplate>
|
||||
<ChildContent>
|
||||
@if (Body != null)
|
||||
{
|
||||
@Body(item)
|
||||
}
|
||||
</ChildContent>
|
||||
</TabPane>
|
||||
}
|
||||
</Tabs>
|
||||
|
Loading…
Reference in New Issue
Block a user