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 +4 -4
- package/src/components/pagedTableDetail.vue +3 -1
- package/src/layouts/default.vue +3 -5
- package/src/types/auto-imports.d.ts +1 -4
- package/src/types/components.d.ts +0 -16
- package/.gitignore +0 -31
- package/bunfig.toml +0 -3
- package/src/types/befly-vite.d.ts +0 -9
- package/src/types/shims-vue.d.ts +0 -6
- package/src/types/vite-env.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-admin",
|
|
3
|
-
"version": "3.12.
|
|
4
|
-
"gitHead": "
|
|
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.
|
|
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.
|
|
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 =
|
|
137
|
+
const $Data = reactive({
|
|
136
138
|
rows: [] as TableRowData[],
|
|
137
139
|
loading: false,
|
|
138
140
|
pager: {
|
package/src/layouts/default.vue
CHANGED
|
@@ -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 =
|
|
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
package/src/types/shims-vue.d.ts
DELETED
package/src/types/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|