Skip to content

Commit 997d521

Browse files
committed
feat: 增加 ContextMenuFullScreenIcon 参数
1 parent e3a9569 commit 997d521

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/BootstrapBlazor/Components/Tab/Tab.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ else if (ShowContextMenu)
2323
@if (ShowContextMenuFullScreen)
2424
{
2525
<ContextMenuDivider></ContextMenuDivider>
26-
<ContextMenuItem Icon="@FullscreenToolbarButtonIcon" Text="@Localizer["ContextFullScreen"]" OnClick="OnFullScreen"></ContextMenuItem>
26+
<ContextMenuItem Icon="@ContextMenuFullScreenIcon" Text="@Localizer["ContextFullScreen"]" OnClick="OnFullScreen"></ContextMenuItem>
2727
}
2828
@if (ContextMenuTemplate != null)
2929
{

src/BootstrapBlazor/Components/Tab/Tab.razor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ public partial class Tab : IHandlerException
407407
[Parameter]
408408
public string? ContextMenuCloseAllIcon { get; set; }
409409

410+
/// <summary>
411+
/// Gets or sets the icon of tab item context menu full screen button. Default is null.
412+
/// </summary>
413+
[Parameter]
414+
public string? ContextMenuFullScreenIcon { get; set; }
415+
410416
/// <summary>
411417
/// Gets or sets before popup context menu callback. Default is null.
412418
/// </summary>
@@ -500,6 +506,7 @@ protected override void OnParametersSet()
500506
ContextMenuCloseIcon ??= IconTheme.GetIconByKey(ComponentIcons.TabContextMenuCloseIcon);
501507
ContextMenuCloseOtherIcon ??= IconTheme.GetIconByKey(ComponentIcons.TabContextMenuCloseOtherIcon);
502508
ContextMenuCloseAllIcon ??= IconTheme.GetIconByKey(ComponentIcons.TabContextMenuCloseAllIcon);
509+
ContextMenuFullScreenIcon ??= IconTheme.GetIconByKey(ComponentIcons.TabContextMenuFullScreenIcon);
503510

504511
if (AdditionalAssemblies is null)
505512
{

0 commit comments

Comments
 (0)