Skip to content

Commit 3f6ea91

Browse files
committed
chore: 增加按钮图标参数
1 parent d2d7145 commit 3f6ea91

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/BootstrapBlazor/Components/Button/PopConfirmButton.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ else
3333
@ChildContent
3434
</CascadingValue>
3535
<PopConfirmButtonContent Title="@Title" Content="@Content" Icon="@ConfirmIcon"
36-
CloseButtonColor="@CloseButtonColor" CloseButtonText="@CloseButtonText"
37-
ConfirmButtonColor="@ConfirmButtonColor" ConfirmButtonText="@ConfirmButtonText"
36+
CloseButtonColor="@CloseButtonColor" CloseButtonText="@CloseButtonText" CloseButtonIcon="@CloseButtonIcon"
37+
ConfirmButtonColor="@ConfirmButtonColor" ConfirmButtonText="@ConfirmButtonText" ConfirmButtonIcon="@ConfirmButtonIcon"
3838
ShowCloseButton="@ShowCloseButton" OnClose="@OnClose"
3939
ShowConfirmButton="@ShowConfirmButton" OnConfirm="@OnClickConfirm" ChildContent="@BodyTemplate" />
4040
</DynamicElement>;

src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ public abstract class PopConfirmButtonBase : ButtonBase
105105
[NotNull]
106106
public string? CloseButtonText { get; set; }
107107

108+
/// <summary>
109+
/// 获得/设置 关闭按钮显示图标
110+
/// </summary>
111+
[Parameter]
112+
public string? CloseButtonIcon { get; set; }
113+
108114
/// <summary>
109115
/// 获得/设置 确认按钮显示文字 默认为 确定
110116
/// </summary>
@@ -118,6 +124,12 @@ public abstract class PopConfirmButtonBase : ButtonBase
118124
[Parameter]
119125
public Color ConfirmButtonColor { get; set; } = Color.Primary;
120126

127+
/// <summary>
128+
/// 获得/设置 确认按钮显示图标
129+
/// </summary>
130+
[Parameter]
131+
public string? ConfirmButtonIcon { get; set; }
132+
121133
/// <summary>
122134
/// 获得/设置 确认框图标
123135
/// </summary>

0 commit comments

Comments
 (0)