Skip to content

Commit 12a6c59

Browse files
committed
refactor: 增加 ButtonText 判断
1 parent e60b187 commit 12a6c59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BootstrapBlazor/Components/Dropdown/Dropdown.razor

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
{
2222
<i class="@Icon"></i>
2323
}
24-
<span>@ButtonText</span>
24+
@if (!string.IsNullOrEmpty(ButtonText))
25+
{
26+
<span>@ButtonText</span>
27+
}
2528
}
2629
else
2730
{

0 commit comments

Comments
 (0)