@namespace AntDesign
@inherits AntDomComponentBase
@if (Pane?.Key != Key || IsEmpty)
{
return;
}
@if (IsTab)
{
var ondragoverPreventDefault = IsActive;
var onclickStopPropagation = !IsActive;
Parent.HandleTabClick(Pane, e))"
@ondragover:preventDefault="@ondragoverPreventDefault"
@ondragstart="@(e => Parent.HandleDragStart(e, Pane))"
@ondrop="@(_ => Parent.HandleDrop(Pane))"
aria-controls="@($"rc-tabs-{Id}-tab-{Key}")"
aria-selected="@(Pane?.IsActive)"
class="@Pane.ClassMapper.Class"
draggable="@Parent.Draggable.ToString()"
id="@($"rc-tabs-{Id}-tab-{Key}")"
ondragover="event.preventDefault();">
@Tab
@if (Parent.Type == TabType.EditableCard && Closable)
{
}
}
else if (IsPane)
{
if (Pane.IsActive || Pane.ForceRender || Pane.HasRendered)
{
Pane.HasRendered = true;