feat: tabs adds new window opening and maximizing/restore capabilities

This commit is contained in:
vince
2024-07-12 23:43:47 +08:00
parent f98f504534
commit 59a8ce9500
6 changed files with 70 additions and 25 deletions

View File

@@ -138,10 +138,22 @@ function usePreferences() {
return enable && globalPreferences;
});
/**
* @zh_CN 内容是否已经最大化
* 排除 full-content模式
*/
const contentIsMaximize = computed(() => {
const headerIsHidden = preferences.header.hidden;
const sidebarIsHidden = preferences.sidebar.hidden;
return headerIsHidden && sidebarIsHidden && !isFullContent.value;
});
return {
authPanelCenter,
authPanelLeft,
authPanelRight,
contentIsMaximize,
diffPreference,
globalLockScreenShortcutKey,
globalLogoutShortcutKey,