ant-design-blazor/site/AntDesign.Docs/Shared/Recommend.razor

19 lines
604 B
C#
Raw Normal View History

2020-07-26 19:20:16 +08:00
<a class="recommend-block @(Main?"recommend-block-main":"")" href="@Data.Href" target="_blank" rel="noopener noreferrer">
<img src="@Data.Img" alt="@Data.Title">
@if (Data.Popularize)
{
<span class="recommend-popularize">广</span>
}
<div class="recommend-content">
<h4 class="ant-typography" direction="ltr">@Data.Title</h4>
<div class="ant-typography" direction="ltr" style="font-size: 13px;">@Data.Description</div>
</div>
</a>
@code
{
[Parameter] public Services.Recommend Data { get; set; }
[Parameter]public bool Main { get; set; }
}