feat: main区域支持全屏

This commit is contained in:
gary.fu
2026-02-02 17:19:46 +08:00
parent 4e052c28ae
commit 5fc146aa4f
2 changed files with 41 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ const serializer = {
*/
export const useTabsViewStore = defineStore('tabsView', () => {
const isTabMode = ref(false)
const isMainMaximized = ref(false)
const isCachedTabMode = ref(true)
const isShowTabIcon = ref(true)
const currentTab = ref('')
@@ -204,6 +205,10 @@ export const useTabsViewStore = defineStore('tabsView', () => {
})
return {
isMainMaximized,
toggleMainFullscreen () {
isMainMaximized.value = !isMainMaximized.value
},
isTabMode,
isCachedTabMode,
isShowTabIcon,