mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
feat: main区域支持全屏
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user