1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
| import { defineAsyncComponent } from 'vue'
| const globalComponentsConfig = [
| {
| name: '设置面板',
| key: 'settings-panel',
| component: defineAsyncComponent(
| () => import('@/components/core/layouts/art-settings-panel/index.vue')
| ),
| enabled: true
| },
| {
| name: '全局搜索',
| key: 'global-search',
| component: defineAsyncComponent(
| () => import('@/components/core/layouts/art-global-search/index.vue')
| ),
| enabled: true
| },
| {
| name: '锁屏',
| key: 'screen-lock',
| component: defineAsyncComponent(
| () => import('@/components/core/layouts/art-screen-lock/index.vue')
| ),
| enabled: true
| },
| {
| name: '聊天窗口',
| key: 'chat-window',
| component: defineAsyncComponent(
| () => import('@/components/core/layouts/art-chat-window/index.vue')
| ),
| enabled: true
| },
| {
| name: '礼花效果',
| key: 'fireworks-effect',
| component: defineAsyncComponent(
| () => import('@/components/core/layouts/art-fireworks-effect/index.vue')
| ),
| enabled: true
| },
| {
| name: '水印效果',
| key: 'watermark',
| component: defineAsyncComponent(
| () => import('@/components/core/others/art-watermark/index.vue')
| ),
| enabled: true
| }
| ]
| const getEnabledGlobalComponents = () => {
| return globalComponentsConfig.filter((config) => config.enabled !== false)
| }
| const getGlobalComponentByKey = (key) => {
| return globalComponentsConfig.find((config) => config.key === key)
| }
| export { getEnabledGlobalComponents, getGlobalComponentByKey, globalComponentsConfig }
|
|