Skip to content

Commit 184b491

Browse files
authored
fix(Collapse): show Icon and Text both (#6536)
* refactor: 更新逻辑图标与文本可以一起显示 * chore: bump version 9.9.1-beta03
1 parent e12f5cd commit 184b491

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.9.1-beta02</Version>
4+
<Version>9.9.1-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Collapse/Collapse.razor

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
@item.HeaderTemplate
2020
</div>
2121
}
22-
else if(!string.IsNullOrEmpty(item.Icon))
23-
{
24-
<i class="@GetItemIconString(item)"></i>
25-
}
2622
else
2723
{
28-
<span>@item.Text</span>
24+
if (!string.IsNullOrEmpty(item.Icon))
25+
{
26+
<i class="@GetItemIconString(item)"></i>
27+
}
28+
if (!string.IsNullOrEmpty(item.Text))
29+
{
30+
<span>@item.Text</span>
31+
}
2932
}
3033
</div>
3134
</div>

0 commit comments

Comments
 (0)