File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/BootstrapBlazor/Components/Button Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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 > ;
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments