xto-fronted 0.4.23 → 0.4.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-BShKtLTm.js +475 -0
- package/dist/index-CBcuyFIa.js +2326 -0
- package/dist/index-CiOJZ6_b.js +372 -0
- package/dist/index-D2Hs4bZj.js +345 -0
- package/dist/index-DZar-us7.js +142 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/stores/app.d.ts +2 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/styles/_dark.scss +0 -67
- package/src/components/Layout/index.vue +124 -266
- package/src/stores/app.ts +0 -15
- package/src/components/Layout/MixTopMenu.vue +0 -896
package/src/stores/app.ts
CHANGED
|
@@ -22,8 +22,6 @@ export const useAppStore = defineStore('app', () => {
|
|
|
22
22
|
const showBreadcrumb = ref<boolean>(local.get<boolean>('showBreadcrumb') ?? true)
|
|
23
23
|
const primaryColor = ref<string>(local.get<string>('primaryColor') || '#409eff')
|
|
24
24
|
const cachedViews = ref<string[]>([])
|
|
25
|
-
// 混合模式下选中的一级菜单路径
|
|
26
|
-
const activeTopMenuPath = ref<string>(local.get<string>('activeTopMenuPath') || '')
|
|
27
25
|
|
|
28
26
|
// 计算属性
|
|
29
27
|
const themeClass = computed(() => (isDark.value ? 'dark' : 'light'))
|
|
@@ -76,17 +74,6 @@ export const useAppStore = defineStore('app', () => {
|
|
|
76
74
|
const setLayout = (mode: LayoutMode) => {
|
|
77
75
|
layout.value = mode
|
|
78
76
|
local.set('layout', mode)
|
|
79
|
-
// 切换布局时清除一级菜单选中状态
|
|
80
|
-
if (mode !== 'mix') {
|
|
81
|
-
activeTopMenuPath.value = ''
|
|
82
|
-
local.remove('activeTopMenuPath')
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// 设置混合模式选中的一级菜单
|
|
87
|
-
const setActiveTopMenuPath = (path: string) => {
|
|
88
|
-
activeTopMenuPath.value = path
|
|
89
|
-
local.set('activeTopMenuPath', path)
|
|
90
77
|
}
|
|
91
78
|
|
|
92
79
|
// 切换标签页
|
|
@@ -157,7 +144,6 @@ export const useAppStore = defineStore('app', () => {
|
|
|
157
144
|
showBreadcrumb,
|
|
158
145
|
primaryColor,
|
|
159
146
|
cachedViews,
|
|
160
|
-
activeTopMenuPath,
|
|
161
147
|
themeClass,
|
|
162
148
|
setAppName,
|
|
163
149
|
setIndexPath,
|
|
@@ -165,7 +151,6 @@ export const useAppStore = defineStore('app', () => {
|
|
|
165
151
|
toggleCollapse,
|
|
166
152
|
setTheme,
|
|
167
153
|
setLayout,
|
|
168
|
-
setActiveTopMenuPath,
|
|
169
154
|
toggleTabs,
|
|
170
155
|
toggleFooter,
|
|
171
156
|
toggleBreadcrumb,
|