Skip to content

Commit 27e9ba4

Browse files
committed
feat(Dropdown): add IsAsync parameter
1 parent 08c93b3 commit 27e9ba4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ public partial class Dropdown<TValue>
118118
[Parameter]
119119
public Func<Task>? OnClickWithoutRender { get; set; }
120120

121+
/// <summary>
122+
/// 获得/设置 是否为异步按钮,默认为 false 如果为 true 表示是异步按钮,点击按钮后禁用自身并且等待异步完成,过程中显示 loading 动画
123+
/// <para><see cref="ShowSplit"/> 为 true 时生效</para>
124+
/// </summary>
125+
[Parameter]
126+
public bool IsAsync { get; set; }
127+
121128
/// <summary>
122129
/// 获得/设置 获取菜单对齐方式 默认 none 未设置
123130
/// </summary>

0 commit comments

Comments
 (0)