Skip to content

Commit 2994e98

Browse files
committed
feat: 增加其他组件兼容逻辑
1 parent 4550998 commit 2994e98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
<i class="@GetItemIconString(item)"></i>
2323
<span>@item.Text</span>
2424
</DynamicElement>
25-
}
25+
}
26+
else if (context is ComponentBase component)
27+
{
28+
@BootstrapDynamicComponent.CreateComponent(component.GetType()).Render()
29+
}
2630
}
2731
</RenderTemplate>
2832
</div>

0 commit comments

Comments
 (0)