| | |
| | | import { defineStore } from 'pinia' |
| | | import { store } from '../index' |
| | | import { setCssVar, humpToUnderline } from '@/utils' |
| | | import { humpToUnderline, setCssVar } from '@/utils' |
| | | import { ElMessage } from 'element-plus' |
| | | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
| | | import { ElementPlusSize } from '@/types/elementPlus' |
| | |
| | | locale: boolean |
| | | message: boolean |
| | | tagsView: boolean |
| | | tagsViewImmerse: boolean |
| | | tagsViewIcon: boolean |
| | | logo: boolean |
| | | fixedHeader: boolean |
| | |
| | | locale: true, // 多语言图标 |
| | | message: true, // 消息图标 |
| | | tagsView: true, // 标签页 |
| | | tagsViewImmerse: false, // 标签页沉浸 |
| | | tagsViewIcon: true, // 是否显示标签图标 |
| | | logo: true, // logo |
| | | fixedHeader: true, // 固定toolheader |
| | |
| | | }, |
| | | getTagsView(): boolean { |
| | | return this.tagsView |
| | | }, |
| | | getTagsViewImmerse(): boolean { |
| | | return this.tagsViewImmerse |
| | | }, |
| | | getTagsViewIcon(): boolean { |
| | | return this.tagsViewIcon |
| | |
| | | setTagsView(tagsView: boolean) { |
| | | this.tagsView = tagsView |
| | | }, |
| | | setTagsViewImmerse(tagsViewImmerse: boolean) { |
| | | this.tagsViewImmerse = tagsViewImmerse |
| | | }, |
| | | setTagsViewIcon(tagsViewIcon: boolean) { |
| | | this.tagsViewIcon = tagsViewIcon |
| | | }, |