befly-admin 3.15.1 → 3.15.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-admin",
3
- "version": "3.15.1",
4
- "gitHead": "fdeb630232962a7f6d023d368f90fd9a91ea20a0",
3
+ "version": "3.15.2",
4
+ "gitHead": "8d10717424ced255e301cb474d356863ab12509a",
5
5
  "private": false,
6
6
  "description": "Befly Admin - 基于 Vue3 + TDesign Vue Next 的后台管理系统",
7
7
  "files": [
@@ -28,13 +28,13 @@
28
28
  "preview": "bunx --bun befly-vite preview"
29
29
  },
30
30
  "dependencies": {
31
- "befly-admin-ui": "^1.9.1",
31
+ "befly-admin-ui": "^1.9.2",
32
32
  "befly-shared": "^2.0.6",
33
- "befly-vite": "^1.5.28",
33
+ "befly-vite": "^1.5.29",
34
34
  "pinia": "^3.0.4",
35
35
  "tdesign-icons-vue-next": "^0.4.4",
36
36
  "tdesign-vue-next": "^1.18.6",
37
- "vue": "^3.5.31",
37
+ "vue": "^3.5.32",
38
38
  "vue-router": "^5.0.4"
39
39
  },
40
40
  "engines": {
@@ -22,7 +22,22 @@ const finalRoutes = Layouts(routes, $Config.homePath, (layoutName) => {
22
22
  */
23
23
  export const $Router = createRouter({
24
24
  history: createWebHashHistory(import.meta.env.BASE_URL),
25
- routes: finalRoutes
25
+ routes: finalRoutes,
26
+ scrollBehavior(to, _from, savedPosition) {
27
+ if (savedPosition) {
28
+ return savedPosition;
29
+ }
30
+
31
+ // 首页等场景已有自定义 hash 滚动处理,这里避免重复抢占锚点定位。
32
+ if (to.hash) {
33
+ return undefined;
34
+ }
35
+
36
+ return {
37
+ left: 0,
38
+ top: 0
39
+ };
40
+ }
26
41
  });
27
42
 
28
43
  // 路由守卫 - 基础鉴权(最小实现:public 放行;未登录跳登录;已登录访问登录页跳首页)
@@ -24,33 +24,24 @@ body {
24
24
  }
25
25
 
26
26
  /* 滚动条样式 - 更精致 */
27
- // ::-webkit-scrollbar {
28
- // width: 6px;
29
- // height: 6px;
30
- // }
31
-
32
- // ::-webkit-scrollbar-track {
33
- // background: transparent;
34
- // }
27
+ ::-webkit-scrollbar {
28
+ width: 6px;
29
+ height: 6px;
30
+ }
35
31
 
36
- // ::-webkit-scrollbar-thumb {
37
- // background: #d9d9d9;
38
- // border-radius: 3px;
39
- // transition: background var(--transition-fast);
40
- // }
32
+ ::-webkit-scrollbar-track {
33
+ background: transparent;
34
+ }
41
35
 
42
- // ::-webkit-scrollbar-thumb:hover {
43
- // background: #bfbfbf;
44
- // }
36
+ ::-webkit-scrollbar-thumb {
37
+ background: #d9d9d9;
38
+ border-radius: 3px;
39
+ transition: background var(--transition-fast);
40
+ }
45
41
 
46
- // .tiny-dialog-box {
47
- // .tiny-dialog-box__header {
48
- // .tiny-dialog-box__headerbtn {
49
- // top: 0 !important;
50
- // right: 0 !important;
51
- // }
52
- // }
53
- // }
42
+ ::-webkit-scrollbar-thumb:hover {
43
+ background: #bfbfbf;
44
+ }
54
45
 
55
46
  /* 通用工具类 */
56
47
  .text-center {
@@ -150,7 +141,7 @@ body {
150
141
  position: relative;
151
142
  height: 100%;
152
143
  // 注意:Table 固定列依赖 sticky + 滚动容器计算;page 级别的 overflow 容器可能导致 fixed 失效
153
- overflow: visible;
144
+ overflow: hidden;
154
145
 
155
146
  // 工具栏
156
147
  .main-tool {