mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
23 lines
369 B
C#
23 lines
369 B
C#
@using AntDesign.Docs.Services
|
|
@inherits ComponentBase
|
|
|
|
@Component
|
|
|
|
|
|
@inject DemoService demoService;
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
public DemoItem Demo { get; set; }
|
|
|
|
RenderFragment Component;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
Component = demoService.GetShowCase(Demo.Type);
|
|
}
|
|
|
|
}
|