!2840 feat(#I5A59D): update link button for switch image and text position

* chore: bump version 6.6.21
* feat: 移动文字与图片位置
pull/2841/MERGE
Argo 3 years ago
parent 65d45563c0
commit 5e192f680b

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup> <PropertyGroup>
<Version>6.6.20</Version> <Version>6.6.21</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'"> <ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

@ -6,14 +6,14 @@
{ {
<i class="@Icon"></i> <i class="@Icon"></i>
} }
@if (!string.IsNullOrEmpty(Text))
{
<span>@Text</span>
}
@if (!string.IsNullOrEmpty(ImageUrl)) @if (!string.IsNullOrEmpty(ImageUrl))
{ {
<img alt="img" src="@ImageUrl" /> <img alt="img" src="@ImageUrl" />
} }
@if (!string.IsNullOrEmpty(Text))
{
<span>@Text</span>
}
@ChildContent @ChildContent
@if (!string.IsNullOrEmpty(Title)) @if (!string.IsNullOrEmpty(Title))
{ {

Loading…
Cancel
Save