mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
19 lines
604 B
C#
19 lines
604 B
C#
<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; }
|
|
}
|