mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
tabs优化
This commit is contained in:
@@ -4,6 +4,7 @@ import { defineStore } from 'pinia'
|
||||
export const useTabsViewStore = defineStore('tabsView', () => {
|
||||
const isTabMode = ref(true)
|
||||
const isCachedTabMode = ref(true)
|
||||
const isShowTabIcon = ref(true)
|
||||
const historyTabs = ref([])
|
||||
const cachedTabs = ref([])
|
||||
|
||||
@@ -61,6 +62,7 @@ export const useTabsViewStore = defineStore('tabsView', () => {
|
||||
return {
|
||||
isTabMode,
|
||||
isCachedTabMode,
|
||||
isShowTabIcon,
|
||||
historyTabs,
|
||||
cachedTabs,
|
||||
changeTabMode () {
|
||||
@@ -75,6 +77,9 @@ export const useTabsViewStore = defineStore('tabsView', () => {
|
||||
cachedTabs.value = []
|
||||
}
|
||||
},
|
||||
changeShowTabIcon () {
|
||||
isShowTabIcon.value = !isShowTabIcon.value
|
||||
},
|
||||
removeHistoryTab,
|
||||
clearHistoryTabs,
|
||||
findHistoryTab,
|
||||
|
||||
Reference in New Issue
Block a user