ant-design-blazor/site/AntDesign.Docs/Shared/MockBrowser.razor.cs
2021-02-06 20:15:46 +08:00

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);
}
}
}