Skip to content

Commit e8fd1e5

Browse files
committed
feat: 增加全屏右键菜单
1 parent 997d521 commit e8fd1e5

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

src/BootstrapBlazor/Enums/ComponentIcons.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,11 @@ public enum ComponentIcons
730730
/// </summary>
731731
TabContextMenuCloseAllIcon,
732732

733+
/// <summary>
734+
/// Tab 组件 TabContextMenuFullScreenIcon 属性图标
735+
/// </summary>
736+
TabContextMenuFullScreenIcon,
737+
733738
/// <summary>
734739
/// Timer 组件 Icon 属性图标
735740
/// </summary>

src/BootstrapBlazor/Icons/BootstrapIcons.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ internal static class BootstrapIcons
9090
{ ComponentIcons.TabContextMenuCloseIcon, "bi bi-x" },
9191
{ ComponentIcons.TabContextMenuCloseOtherIcon, "bi bi-arrow" },
9292
{ ComponentIcons.TabContextMenuCloseAllIcon, "bi bi-arrow-left-right" },
93+
{ ComponentIcons.TabContextMenuFullScreenIcon, "bi bi-arrows-fullscreen" },
9394

9495
{ ComponentIcons.LogoutLinkIcon, "bi bi-box-arrow-right" },
9596

src/BootstrapBlazor/Icons/FontAwesomeIcons.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ internal static class FontAwesomeIcons
9090
{ ComponentIcons.TabContextMenuCloseIcon, "fa-fw fa-solid fa-xmark" },
9191
{ ComponentIcons.TabContextMenuCloseOtherIcon, "fa-fw fa-solid fa-left-right" },
9292
{ ComponentIcons.TabContextMenuCloseAllIcon, "fa-fw fa-solid fa-arrows-left-right-to-line" },
93+
{ ComponentIcons.TabContextMenuFullScreenIcon, "fa-fw fa-solid fa-maximize" },
9394

9495
{ ComponentIcons.LogoutLinkIcon, "fa-solid fa-key" },
9596

src/BootstrapBlazor/Icons/MaterialDesignIcons.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ internal static class MaterialDesignIcons
9090
{ ComponentIcons.TabContextMenuCloseIcon, "mdi mdi-close" },
9191
{ ComponentIcons.TabContextMenuCloseOtherIcon, "mdi mdi-menu" },
9292
{ ComponentIcons.TabContextMenuCloseAllIcon, "mdi mdi-arrow-left-right-bold" },
93+
{ ComponentIcons.TabContextMenuFullScreenIcon, "mdi mdi-arrow-expand-all" },
9394

9495
{ ComponentIcons.LogoutLinkIcon, "mdi mdi-logout" },
9596

src/BootstrapBlazor/Locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@
182182
"ContextRefresh": "Refresh",
183183
"ContextClose": "Close",
184184
"ContextCloseOther": "Close Other Tabs",
185-
"ContextCloseAll": "Close All Tabs"
185+
"ContextCloseAll": "Close All Tabs",
186+
"ContextFullScreen": "Full screen"
186187
},
187188
"BootstrapBlazor.Components.MultiFilter": {
188189
"MultiFilterSearchPlaceHolderText": "Please enter ...",

src/BootstrapBlazor/Locales/zh.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@
182182
"ContextRefresh": "刷新",
183183
"ContextClose": "关闭",
184184
"ContextCloseOther": "关闭其他",
185-
"ContextCloseAll": "关闭全部"
185+
"ContextCloseAll": "关闭全部",
186+
"ContextFullScreen": "全屏"
186187
},
187188
"BootstrapBlazor.Components.MultiFilter": {
188189
"MultiFilterSearchPlaceHolderText": "请输入 ...",

0 commit comments

Comments
 (0)