@ganwei-web/ganwei-pc-cli 6.3.7 → 6.3.9
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/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/css/ElementPlusAdapter.css +89 -443
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/dark-6-1.css +892 -885
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/green-6-1.css +16 -0
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/public/static/themes/light-6-1.css +8 -1
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/components/layouts/Navigation/TopNav.vue +10 -18
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-index/src/views/index.js +4 -5
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-login/public/static/themes/light-6-1.css +1 -1
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/env.d.ts +1 -0
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/package.json +3 -3
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/dark-6-1.css +892 -885
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/public/static/themes/light-6-1.css +8 -1
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/dom.ts +3 -11
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/performance.ts +2 -2
- package/ganwei-iotcenter-index-6.2.3/packages/ganwei-iotcenter-template/src/utils/string.ts +0 -14
- package/ganwei-iotcenter-index-6.2.3/pnpm-lock.yaml +331 -28
- package/package.json +1 -1
|
@@ -323,6 +323,22 @@
|
|
|
323
323
|
--transfer-border: var(--gw-color-Neutrals18);
|
|
324
324
|
--transfer-header-background: var(--gw-color-Neutrals21);
|
|
325
325
|
|
|
326
|
+
/* collapse */
|
|
327
|
+
--collapse-header-background: var(--gw-color-Neutrals21);
|
|
328
|
+
--collapse-header-background__hover: var(--gw-color-Neutrals29);
|
|
329
|
+
--collapse-header-background__active: var(--gw-color-Neutrals29);
|
|
330
|
+
--collapse-color: var(--frame-main-color);
|
|
331
|
+
--collapse-color__hover: var(--frame-main-color);
|
|
332
|
+
--collapse-content-background: transparent;
|
|
333
|
+
|
|
334
|
+
/* descriptions */
|
|
335
|
+
--descriptions-border: var(--gw-color-Neutrals18);
|
|
336
|
+
--descriptions-label-color: var(--frame-main-color);
|
|
337
|
+
--descriptions-label-background: var(--gw-color-Neutrals21);
|
|
338
|
+
--descriptions-content-color: var(--frame-main-color);
|
|
339
|
+
--descriptions-content-background: var(--frame-main-background-2);
|
|
340
|
+
|
|
341
|
+
|
|
326
342
|
/* fullcalendar 日历 */
|
|
327
343
|
--fc-color: var(--gw-color-Neutrals2);
|
|
328
344
|
--fc-color__active: var(--gw-color-Neutrals27);
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
|
|
223
223
|
/*el-input 基础*/
|
|
224
224
|
--input-color: var(--gw-color-Neutrals2);
|
|
225
|
-
--input-background: var(--gw-color-
|
|
225
|
+
--input-background: var(--gw-color-Neutrals25);
|
|
226
226
|
--input-background__disabled: var(--gw-color-Neutrals20);
|
|
227
227
|
--input-placeholder: var(--gw-color-Neutrals13);
|
|
228
228
|
--input-border: var(--gw-color-Neutrals18);
|
|
@@ -399,6 +399,13 @@
|
|
|
399
399
|
--collapse-color__hover: var(--frame-main-color);
|
|
400
400
|
--collapse-content-background: transparent;
|
|
401
401
|
|
|
402
|
+
/* descriptions */
|
|
403
|
+
--descriptions-border: var(--gw-color-Neutrals18);
|
|
404
|
+
--descriptions-label-color: var(--frame-main-color);
|
|
405
|
+
--descriptions-label-background: var(--gw-color-Neutrals21);
|
|
406
|
+
--descriptions-content-color: var(--frame-main-color);
|
|
407
|
+
--descriptions-content-background: var(--frame-main-background-2);
|
|
408
|
+
|
|
402
409
|
/* 穿梭框 */
|
|
403
410
|
--transfer-background: var(--gw-color-Neutrals25);
|
|
404
411
|
--transfer-border: var(--gw-color-Neutrals18);
|
|
@@ -163,25 +163,21 @@ watch(
|
|
|
163
163
|
console.log('TopNav routesMap 数据尚未加载,跳过路由匹配')
|
|
164
164
|
return
|
|
165
165
|
}
|
|
166
|
-
|
|
167
166
|
const map = routesMap.value
|
|
168
167
|
const decodedPath = decodeURIComponent(fullPath as string)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// 移除查询参数获取基础路径
|
|
172
|
-
if (routeBase.indexOf('?') != -1) {
|
|
173
|
-
routeBase = routeBase.split('?')[0]
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// 优先精确匹配
|
|
168
|
+
// 判断fullPath是否存在映射地址中map[decodedPath]
|
|
177
169
|
if (decodedPath in map) {
|
|
178
170
|
const index = map[decodedPath]
|
|
179
171
|
if (index !== props.modelValue) {
|
|
180
172
|
emit('update:modelValue', index)
|
|
181
173
|
}
|
|
182
174
|
} else {
|
|
183
|
-
//
|
|
175
|
+
// 去除映射键值参数和去除fullPath参数地址对比
|
|
184
176
|
let matchedIndex = -1
|
|
177
|
+
let routeBase = decodedPath
|
|
178
|
+
if (routeBase.indexOf('?') != -1) {
|
|
179
|
+
routeBase = routeBase.split('?')[0]
|
|
180
|
+
}
|
|
185
181
|
for (const [mapKey, index] of Object.entries(map)) {
|
|
186
182
|
const mapKeyBase = mapKey.indexOf('?') != -1 ? mapKey.split('?')[0] : mapKey
|
|
187
183
|
// 移除可能存在的空格后比较
|
|
@@ -192,8 +188,6 @@ watch(
|
|
|
192
188
|
}
|
|
193
189
|
if (matchedIndex !== -1 && matchedIndex !== props.modelValue) {
|
|
194
190
|
emit('update:modelValue', matchedIndex)
|
|
195
|
-
} else {
|
|
196
|
-
console.log('TopNav 未匹配到菜单:', { decodedPath, routeBase })
|
|
197
191
|
}
|
|
198
192
|
}
|
|
199
193
|
},
|
|
@@ -211,12 +205,6 @@ watch(
|
|
|
211
205
|
}
|
|
212
206
|
const fullPath = route.fullPath
|
|
213
207
|
const decodedPath = decodeURIComponent(fullPath as string)
|
|
214
|
-
let routeBase = decodedPath
|
|
215
|
-
|
|
216
|
-
if (routeBase.indexOf('?') != -1) {
|
|
217
|
-
routeBase = routeBase.split('?')[0]
|
|
218
|
-
}
|
|
219
|
-
|
|
220
208
|
if (decodedPath in newMap) {
|
|
221
209
|
const index = newMap[decodedPath]
|
|
222
210
|
if (index !== props.modelValue) {
|
|
@@ -224,6 +212,10 @@ watch(
|
|
|
224
212
|
}
|
|
225
213
|
} else {
|
|
226
214
|
let matchedIndex = -1
|
|
215
|
+
let routeBase = decodedPath
|
|
216
|
+
if (routeBase.indexOf('?') != -1) {
|
|
217
|
+
routeBase = routeBase.split('?')[0]
|
|
218
|
+
}
|
|
227
219
|
for (const [mapKey, index] of Object.entries(newMap)) {
|
|
228
220
|
const mapKeyBase = mapKey.indexOf('?') != -1 ? mapKey.split('?')[0] : mapKey
|
|
229
221
|
if (mapKeyBase.trim() === routeBase.trim()) {
|
|
@@ -173,7 +173,6 @@ export default {
|
|
|
173
173
|
* 从服务器获取菜单数据,处理并设置菜单样式
|
|
174
174
|
*/
|
|
175
175
|
getMenus() {
|
|
176
|
-
|
|
177
176
|
this.loading = true
|
|
178
177
|
this.$api
|
|
179
178
|
.GetMenus()
|
|
@@ -190,7 +189,7 @@ export default {
|
|
|
190
189
|
this.correctMenuLevel(data)
|
|
191
190
|
this.allMenus = data
|
|
192
191
|
let menesIndex = this.getMenusIndex()
|
|
193
|
-
this.navTopActive = menesIndex == -
|
|
192
|
+
this.navTopActive = menesIndex == -2 ? 0 : menesIndex;
|
|
194
193
|
window.sessionStorage.asideList = JSON.stringify(this.allMenus)
|
|
195
194
|
}
|
|
196
195
|
} else {
|
|
@@ -361,7 +360,7 @@ export default {
|
|
|
361
360
|
return i
|
|
362
361
|
}
|
|
363
362
|
}
|
|
364
|
-
return -
|
|
363
|
+
return -2
|
|
365
364
|
}
|
|
366
365
|
},
|
|
367
366
|
watch: {
|
|
@@ -371,8 +370,8 @@ export default {
|
|
|
371
370
|
this.isHideMenu = window.getParameterMap().get("isHideMenu") === 'true'
|
|
372
371
|
this.isHideHead = window.getParameterMap().get("isHideHead") === 'true'
|
|
373
372
|
// 路由变化时更新 navTopActive,确保左侧菜单正确显示
|
|
374
|
-
const menesIndex = this.getMenusIndex()
|
|
375
|
-
this.navTopActive = menesIndex == -1 ? (this.allMenus.length > 0 ? 0 : -1) : menesIndex
|
|
373
|
+
// const menesIndex = this.getMenusIndex()
|
|
374
|
+
// this.navTopActive = menesIndex == -1 ? (this.allMenus.length > 0 ? 0 : -1) : menesIndex
|
|
376
375
|
},
|
|
377
376
|
deep: true,
|
|
378
377
|
immediate: true
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
/*el-input 基础*/
|
|
214
214
|
--input-color: var(--gw-color-Neutrals2);
|
|
215
|
-
--input-background: var(--gw-color-
|
|
215
|
+
--input-background: var(--gw-color-Neutrals25);
|
|
216
216
|
--input-background__disabled: var(--gw-color-Neutrals20);
|
|
217
217
|
--input-placeholder: var(--gw-color-Neutrals13);
|
|
218
218
|
--input-border: var(--gw-color-Neutrals18);
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@babel/core": "^7.26.0",
|
|
14
14
|
"@babel/eslint-parser": "^7.25.9",
|
|
15
15
|
"@element-plus/icons-vue": "^2.3.1",
|
|
16
|
-
"@ganwei-web/gw-base-api-plus": "^1.0.
|
|
17
|
-
"@ganwei-web/gw-base-components-plus": "^1.0.
|
|
16
|
+
"@ganwei-web/gw-base-api-plus": "^1.0.2",
|
|
17
|
+
"@ganwei-web/gw-base-components-plus": "^1.0.24",
|
|
18
18
|
"@ganwei-web/gw-base-style-plus": "^1.0.0",
|
|
19
19
|
"@ganwei-web/gw-base-utils-plus": "^1.0.1",
|
|
20
20
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"postcss-pxtorem": "^6.1.0",
|
|
76
76
|
"qs": "^6.14.1",
|
|
77
77
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
78
|
-
"typescript": "^
|
|
78
|
+
"typescript": "^5.8.0",
|
|
79
79
|
"unplugin-auto-import": "^0.13.0",
|
|
80
80
|
"vite": "^4.5.5",
|
|
81
81
|
"vite-plugin-html": "^3.2.2",
|