...
|
...
|
@@ -8,13 +8,7 @@ import { usePackagesStore } from '@/store/modules/packagesStore/packagesStore' |
8
|
8
|
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
|
9
|
9
|
// 图标
|
10
|
10
|
const { BarChartIcon } = icon.ionicons5
|
11
|
|
-const {
|
12
|
|
- TableSplitIcon,
|
13
|
|
- RoadmapIcon,
|
14
|
|
- SpellCheckIcon,
|
15
|
|
- GraphicalDataFlowIcon,
|
16
|
|
-} = icon.carbon
|
17
|
|
-
|
|
11
|
+const { TableSplitIcon, RoadmapIcon, SpellCheckIcon, GraphicalDataFlowIcon } = icon.carbon
|
18
|
12
|
|
19
|
13
|
// 图表
|
20
|
14
|
export type MenuOptionsType = {
|
...
|
...
|
@@ -26,32 +20,28 @@ export type MenuOptionsType = { |
26
|
20
|
|
27
|
21
|
const { getPackagesList } = usePackagesStore()
|
28
|
22
|
const menuOptions: MenuOptionsType[] = []
|
29
|
|
-
|
|
23
|
+// THINGS_KIT
|
30
|
24
|
const packagesListObj = {
|
31
|
25
|
[PackagesCategoryEnum.CHARTS]: {
|
32
|
26
|
icon: renderIcon(RoadmapIcon),
|
33
|
|
- label: PackagesCategoryName.CHARTS,
|
|
27
|
+ label: PackagesCategoryName.CHARTS
|
34
|
28
|
},
|
35
|
29
|
[PackagesCategoryEnum.INFORMATIONS]: {
|
36
|
30
|
icon: renderIcon(SpellCheckIcon),
|
37
|
|
- label: PackagesCategoryName.INFORMATIONS,
|
|
31
|
+ label: PackagesCategoryName.INFORMATIONS
|
38
|
32
|
},
|
39
|
33
|
[PackagesCategoryEnum.TABLES]: {
|
40
|
34
|
icon: renderIcon(TableSplitIcon),
|
41
|
|
- label: PackagesCategoryName.TABLES,
|
|
35
|
+ label: PackagesCategoryName.TABLES
|
42
|
36
|
},
|
43
|
37
|
[PackagesCategoryEnum.DECORATES]: {
|
44
|
38
|
icon: renderIcon(GraphicalDataFlowIcon),
|
45
|
|
- label: PackagesCategoryName.DECORATES,
|
46
|
|
- },
|
47
|
|
- [PackagesCategoryEnum.ARTOONS]: {
|
48
|
|
- icon: renderIcon(GraphicalDataFlowIcon),
|
49
|
|
- label: PackagesCategoryName.ARTOONS,
|
|
39
|
+ label: PackagesCategoryName.DECORATES
|
50
|
40
|
},
|
51
|
41
|
[PackagesCategoryEnum.COMPOSES]: {
|
52
|
42
|
icon: renderIcon(GraphicalDataFlowIcon),
|
53
|
|
- label: PackagesCategoryName.COMPOSES,
|
54
|
|
- },
|
|
43
|
+ label: PackagesCategoryName.COMPOSES
|
|
44
|
+ }
|
55
|
45
|
}
|
56
|
46
|
|
57
|
47
|
// 处理列表
|
...
|
...
|
@@ -64,7 +54,7 @@ const handlePackagesList = () => { |
64
|
54
|
// @ts-ignore
|
65
|
55
|
label: packagesListObj[val].label,
|
66
|
56
|
// @ts-ignore
|
67
|
|
- list: getPackagesList[val],
|
|
57
|
+ list: getPackagesList[val]
|
68
|
58
|
})
|
69
|
59
|
}
|
70
|
60
|
}
|
...
|
...
|
@@ -89,12 +79,4 @@ const clickItemHandle = (key: string, item: any) => { |
89
|
79
|
beforeSelect = key
|
90
|
80
|
}
|
91
|
81
|
|
92
|
|
-export {
|
93
|
|
- getCharts,
|
94
|
|
- BarChartIcon,
|
95
|
|
- themeColor,
|
96
|
|
- selectOptions,
|
97
|
|
- selectValue,
|
98
|
|
- clickItemHandle,
|
99
|
|
- menuOptions,
|
100
|
|
-} |
|
82
|
+export { getCharts, BarChartIcon, themeColor, selectOptions, selectValue, clickItemHandle, menuOptions } |
...
|
...
|
|