Skip to content

Commit 53fe46b

Browse files
committed
feat: 增加图标赋值逻辑
1 parent 33cefa9 commit 53fe46b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ protected override void OnParametersSet()
242242

243243
FixedButtonText ??= SelectedItem?.Text;
244244
LoadingIcon ??= IconTheme.GetIconByKey(ComponentIcons.ButtonLoadingIcon);
245+
246+
if (_isAsyncLoading == false)
247+
{
248+
_buttonIcon = Icon;
249+
}
245250
}
246251

247252
private IEnumerable<SelectedItem> GetItems() => (IsFixedButtonText && !ShowFixedButtonTextInDropdown)

0 commit comments

Comments
 (0)