Skip to content

Commit e2cd484

Browse files
committed
feat: 标签页右键菜单补充图标
1 parent bfe6607 commit e2cd484

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/layouts/components/Topbar/Tabbar/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,19 @@ function contextMenuItems(routeItem: Tabbar.recordRaw) {
8383
[
8484
{
8585
label: '关闭其他标签页',
86+
icon: 'i-mdi:close',
8687
disabled: !tabbar.checkCloseOtherSide(routeItem.tabId),
8788
handle: () => tabbar.closeOtherSide(routeItem.tabId),
8889
},
8990
{
9091
label: '关闭左侧标签页',
92+
icon: 'i-mdi:arrow-expand-left',
9193
disabled: !tabbar.checkCloseLeftSide(routeItem.tabId),
9294
handle: () => tabbar.closeLeftSide(routeItem.tabId),
9395
},
9496
{
9597
label: '关闭右侧标签页',
98+
icon: 'i-mdi:arrow-expand-right',
9699
disabled: !tabbar.checkCloseRightSide(routeItem.tabId),
97100
handle: () => tabbar.closeRightSide(routeItem.tabId),
98101
},

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import App from './App.vue'
88
import router from './router'
99
import pinia from './store'
1010
import uiProvider from './ui/provider'
11-
1211
import '@/utils/systemCopyright'
1312

1413
// 加载 svg 图标

0 commit comments

Comments
 (0)