Skip to content

Table 表行内按钮执行操作超过 2 秒时的 BUG #4275

Answered by ArgoZhang
youthalan asked this question in Q&A
Discussion options

You must be logged in to vote

解决工程上传

BootstrapBlazorApp1.zip

解决问题核心代码

<TableCellPopConfirmButton Color="context.Status == 0? Color.Success : Color.Warning" Icon="fa-solid fa-pen"
   Text="@Localizer[(context.Status == 0? "Entry":"Export")]"
   AutoRenderTableWhenClick="true"
   AutoSelectedRowWhenClick="false"
   OnConfirm="@(() => OnEntrance(context))" />

增加 AutoRenderTableWhenClick AutoSelectedRowWhenClick 参数设置

private async Task OnEntrance(Foo item)
{
    item.Status = 1 - item.Status;
    item.UpdateDateTime = DateTime.Now;
    await Task.Delay(1000); 
    //await table.QueryAsync();
}

移除方法内查询语句

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@youthalan
Comment options

Comment options

You must be logged in to vote
3 replies
@ArgoZhang
Comment options

@ArgoZhang
Comment options

@ArgoZhang
Comment options

Answer selected by ArgoZhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #4274 on September 11, 2024 09:11.