mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-06 05:57:39 +08:00
25 lines
578 B
C#
25 lines
578 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign.Docs.Shared
|
|
{
|
|
public partial class MockBrowser
|
|
{
|
|
private ClassMapper ClassMapper { get; set; } = new ClassMapper();
|
|
|
|
[Parameter]
|
|
public int Height { get; set; }
|
|
|
|
[Parameter]
|
|
public string WithUrl { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
ClassMapper.Add("browser-mockup")
|
|
.If("with-url", () => WithUrl != null);
|
|
}
|
|
}
|
|
}
|