befly-admin 3.12.8 → 3.12.10

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.12.8",
4
- "gitHead": "c30de9bab631596341b6bc28490579a9923c87d6",
3
+ "version": "3.12.10",
4
+ "gitHead": "f9f6bca0385e275961720d686bab20b2e2167f87",
5
5
  "private": false,
6
6
  "description": "Befly Admin - 基于 Vue3 + TDesign Vue Next 的后台管理系统",
7
7
  "files": [
@@ -28,11 +28,11 @@
28
28
  "preview": "bunx --bun vite preview"
29
29
  },
30
30
  "dependencies": {
31
- "@befly-addon/admin": "^1.8.5",
31
+ "@befly-addon/admin": "^1.8.7",
32
32
  "@iconify-json/lucide": "^1.2.86",
33
33
  "axios": "^1.13.2",
34
34
  "befly-shared": "^1.4.5",
35
- "befly-vite": "^1.4.9",
35
+ "befly-vite": "^1.4.10",
36
36
  "pinia": "^3.0.4",
37
37
  "tdesign-vue-next": "^1.18.0",
38
38
  "vite": "^8.0.0-beta.8",
@@ -40,6 +40,8 @@
40
40
  <script setup lang="ts">
41
41
  defineOptions({ name: "PagedTableDetail" });
42
42
 
43
+ import { reactive } from "vue";
44
+
43
45
  type PrimaryTableCol = import("tdesign-vue-next").PrimaryTableCol;
44
46
  type TableRowData = import("tdesign-vue-next").TableRowData;
45
47
 
@@ -132,7 +134,7 @@ const emit = defineEmits<{
132
134
 
133
135
  const slots = useSlots();
134
136
 
135
- const $Data = $ref({
137
+ const $Data = reactive({
136
138
  rows: [] as TableRowData[],
137
139
  loading: false,
138
140
  pager: {
@@ -77,6 +77,8 @@
77
77
  <script setup lang="ts">
78
78
  import { arrayToTree } from "befly-shared/utils/arrayToTree";
79
79
 
80
+ import { reactive } from "vue";
81
+
80
82
  const router = useRouter();
81
83
  const route = useRoute();
82
84
  const global = useGlobal();
@@ -112,12 +114,8 @@ const normalizeParentPath = (parentPath) => {
112
114
  return normalized;
113
115
  };
114
116
 
115
- const $From = {
116
- treeMenuRef: null
117
- };
118
-
119
117
  // 响应式数据
120
- const $Data = $ref({
118
+ const $Data = reactive({
121
119
  userMenus: [],
122
120
  userMenusFlat: [], // 一维菜单数据
123
121
  expandedKeys: [],
@@ -10,12 +10,9 @@ declare global {
10
10
  const $Http: typeof import('../plugins/http').$Http
11
11
  const $Router: typeof import('../plugins/router').$Router
12
12
  const $Storage: typeof import('../plugins/storage').$Storage
13
- const DialogPlugin: typeof import('tdesign-vue-next').DialogPlugin
14
13
  const EffectScope: typeof import('vue').EffectScope
15
14
  const MessagePlugin: typeof import('tdesign-vue-next').MessagePlugin
16
15
  const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
17
- const arrayToTree: typeof import('befly-shared/utils/arrayToTree').arrayToTree
18
- const cleanParams: typeof import('befly-shared/utils/cleanParams').cleanParams
19
16
  const computed: typeof import('vue').computed
20
17
  const createApp: typeof import('vue').createApp
21
18
  const createPinia: typeof import('pinia').createPinia
@@ -64,7 +61,6 @@ declare global {
64
61
  const readonly: typeof import('vue').readonly
65
62
  const ref: typeof import('vue').ref
66
63
  const resolveComponent: typeof import('vue').resolveComponent
67
- const router: typeof import('../plugins/router').router
68
64
  const setActivePinia: typeof import('pinia').setActivePinia
69
65
  const setMapStoreSuffix: typeof import('pinia').setMapStoreSuffix
70
66
  const shallowReactive: typeof import('vue').shallowReactive
@@ -115,6 +111,7 @@ declare module 'vue' {
115
111
  readonly $Router: UnwrapRef<typeof import('../plugins/router')['$Router']>
116
112
  readonly $Storage: UnwrapRef<typeof import('../plugins/storage')['$Storage']>
117
113
  readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
114
+ readonly MessagePlugin: UnwrapRef<typeof import('tdesign-vue-next')['MessagePlugin']>
118
115
  readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
119
116
  readonly computed: UnwrapRef<typeof import('vue')['computed']>
120
117
  readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
@@ -12,26 +12,10 @@ export {}
12
12
  declare module 'vue' {
13
13
  export interface GlobalComponents {
14
14
  DetailPanel: typeof import('./../components/detailPanel.vue')['default']
15
- 'ILucide:box': typeof import('~icons/lucide/box')['default']
16
- 'ILucide:camera': typeof import('~icons/lucide/camera')['default']
17
- 'ILucide:fileText': typeof import('~icons/lucide/file-text')['default']
18
- 'ILucide:folder': typeof import('~icons/lucide/folder')['default']
19
- 'ILucide:home': typeof import('~icons/lucide/home')['default']
20
- 'ILucide:logOut': typeof import('~icons/lucide/log-out')['default']
21
- 'ILucide:settings': typeof import('~icons/lucide/settings')['default']
22
- 'ILucide:user': typeof import('~icons/lucide/user')['default']
23
15
  PageDialog: typeof import('./../components/pageDialog.vue')['default']
24
16
  PagedTableDetail: typeof import('./../components/pagedTableDetail.vue')['default']
25
17
  RouterLink: typeof import('vue-router')['RouterLink']
26
18
  RouterView: typeof import('vue-router')['RouterView']
27
- TButton: typeof import('tdesign-vue-next')['Button']
28
19
  TConfigProvider: typeof import('tdesign-vue-next')['ConfigProvider']
29
- TMenu: typeof import('tdesign-vue-next')['Menu']
30
- TMenuItem: typeof import('tdesign-vue-next')['MenuItem']
31
- TPagination: typeof import('tdesign-vue-next')['Pagination']
32
- TSubmenu: typeof import('tdesign-vue-next')['Submenu']
33
- TTable: typeof import('tdesign-vue-next')['Table']
34
- TTag: typeof import('tdesign-vue-next')['Tag']
35
- TUpload: typeof import('tdesign-vue-next')['Upload']
36
20
  }
37
21
  }
package/.gitignore DELETED
@@ -1,31 +0,0 @@
1
- types
2
- .vite-inspect
3
-
4
- # Logs
5
- logs
6
- *.log
7
- npm-debug.log*
8
- yarn-debug.log*
9
- yarn-error.log*
10
- pnpm-debug.log*
11
- lerna-debug.log*
12
-
13
- node_modules
14
- dist
15
- dist-ssr
16
- *.local
17
-
18
- # Editor directories and files
19
- .vscode/*
20
- !.vscode/extensions.json
21
- .idea
22
- .DS_Store
23
- *.suo
24
- *.ntvs*
25
- *.njsproj
26
- *.sln
27
- *.sw?
28
-
29
- # Auto-generated files
30
- src/types/auto-imports.d.ts
31
- src/types/components.d.ts
package/bunfig.toml DELETED
@@ -1,3 +0,0 @@
1
- env = false
2
- [install]
3
- linker = "isolated"
@@ -1,9 +0,0 @@
1
- declare module "befly-vite" {
2
- import type { RouteRecordRaw } from "vue-router";
3
-
4
- export function Layouts(
5
- routes: readonly RouteRecordRaw[],
6
- homePath?: string,
7
- resolver?: (layoutName: string) => unknown
8
- ): readonly RouteRecordRaw[];
9
- }
@@ -1,6 +0,0 @@
1
- declare module "*.vue" {
2
- import type { DefineComponent } from "vue";
3
-
4
- const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>;
5
- export default component;
6
- }
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />