mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(tabs): 多页签增加关闭所有
This commit is contained in:
@ -86,6 +86,11 @@ const options = computed<Option[]>(() => [
|
||||
label: '关闭右侧',
|
||||
key: 'close-right',
|
||||
icon: iconifyRender('mdi:format-horizontal-align-right')
|
||||
},
|
||||
{
|
||||
label: '关闭所有',
|
||||
key: 'close-all',
|
||||
icon: iconifyRender('ant-design:line-outlined')
|
||||
}
|
||||
]);
|
||||
|
||||
@ -119,6 +124,12 @@ const actionMap = new Map<DropdownKey, () => void>([
|
||||
() => {
|
||||
tab.clearRightTab(props.currentPath);
|
||||
}
|
||||
],
|
||||
[
|
||||
'close-all',
|
||||
() => {
|
||||
tab.clearAllTab();
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user