mirror of https://github.com/abpframework/abp.git
6 changed files with 20 additions and 20 deletions
@ -1,7 +0,0 @@ |
|||||
@if (AbpDynamicComponentOptions.Value.Components.Any()) |
|
||||
{ |
|
||||
foreach (var (componentType, parameters) in AbpDynamicComponentOptions.Value.Components) |
|
||||
{ |
|
||||
<DynamicComponent Type="@componentType" Parameters="@parameters" /> |
|
||||
} |
|
||||
} |
|
||||
@ -1,10 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Components; |
|
||||
using Microsoft.Extensions.Options; |
|
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Components.Web.Theming.Components; |
|
||||
|
|
||||
public partial class AbpDynamicComponents : ComponentBase |
|
||||
{ |
|
||||
[Inject] |
|
||||
protected IOptions<AbpDynamicComponentOptions> AbpDynamicComponentOptions { get; set; } |
|
||||
} |
|
||||
@ -0,0 +1,7 @@ |
|||||
|
@if (AbpDynamicLayoutComponentOptions.Value.Components.Any()) |
||||
|
{ |
||||
|
foreach (var (componentType, parameters) in AbpDynamicLayoutComponentOptions.Value.Components) |
||||
|
{ |
||||
|
<DynamicComponent Type="@componentType" Parameters="@parameters" /> |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
using Microsoft.AspNetCore.Components; |
||||
|
using Microsoft.Extensions.Options; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Components.Web.Theming.Components; |
||||
|
|
||||
|
public partial class DynamicLayoutComponent : ComponentBase |
||||
|
{ |
||||
|
[Inject] |
||||
|
protected IOptions<AbpDynamicLayoutComponentOptions> AbpDynamicLayoutComponentOptions { get; set; } |
||||
|
} |
||||
Loading…
Reference in new issue