Skip to content

Commit 85a4258

Browse files
committed
refactor: 增加 IsKeepDisabled 参数支持
1 parent ddf836e commit 85a4258

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/BootstrapBlazor/Components/Table/TableExtensionButton.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
{
1111
case TableCellButton { IsShow: true } b:
1212
<Button AdditionalAttributes="b.AdditionalAttributes" Size="b.Size"
13-
Color="@b.Color" Icon="@b.Icon" Text="@b.Text" IsAsync="@b.IsAsync"
13+
Color="@b.Color" Icon="@b.Icon" Text="@b.Text"
14+
IsAsync="@b.IsAsync" IsKeepDisabled="b.IsKeepDisabled"
1415
TooltipText="@b.TooltipText" TooltipPlacement="@b.TooltipPlacement"
1516
TooltipTrigger="@b.TooltipTrigger" ChildContent="@b.ChildContent"
1617
OnClickWithoutRender="() => OnClick(b)" IsDisabled="b.IsDisabled"></Button>
1718
break;
1819
case TableCellPopConfirmButton { IsShow: true } pb:
1920
<PopConfirmButton AdditionalAttributes="pb.AdditionalAttributes"
20-
Color="@pb.Color" Icon="@pb.Icon" Text="@pb.Text" IsAsync="@pb.IsAsync"
21+
Color="@pb.Color" Icon="@pb.Icon" Text="@pb.Text"
22+
IsAsync="@pb.IsAsync" IsKeepDisabled="b.IsKeepDisabled"
2123
Size="pb.Size" ShowShadow="@pb.ShowShadow" IsDisabled="@pb.IsDisabled"
2224
IsBlock="@pb.IsBlock" IsOutline="@pb.IsOutline"
2325
OnBeforeClick="@pb.OnBeforeClick" OnClose="@pb.OnClose" OnConfirm="() => OnClickConfirm(pb)"

0 commit comments

Comments
 (0)