feat: 新增工具栏模块, 修改系统设置初始化结构

This commit is contained in:
MTrun
2022-04-09 16:40:57 +08:00
parent 5e6ecfc3e5
commit 5904d04e2e
11 changed files with 178 additions and 73 deletions
+1 -3
View File
@@ -4,7 +4,7 @@ export enum ChartLayoutStoreEnum {
LAYERS = 'layers',
CHARTS = 'charts',
DETAILS = 'details',
ALIGNLINE = 'alignLine',
TOOLS = 'tools'
}
export interface ChartLayoutType {
@@ -14,6 +14,4 @@ export interface ChartLayoutType {
[ChartLayoutStoreEnum.CHARTS]: boolean
// 详情设置
[ChartLayoutStoreEnum.DETAILS]: boolean
// 对齐线
[ChartLayoutStoreEnum.ALIGNLINE]: boolean
}
@@ -8,7 +8,7 @@ const chartEditStore = useChartEditStore()
const { GO_CHART_LAYOUT_STORE } = StorageEnum
const storageChartLayout: ChartLayoutType = getLocalStorage( GO_CHART_LAYOUT_STORE)
const storageChartLayout: ChartLayoutType = getLocalStorage(GO_CHART_LAYOUT_STORE)
// 编辑区域布局和静态设置
export const useChartLayoutStore = defineStore({
@@ -20,9 +20,7 @@ export const useChartLayoutStore = defineStore({
// 图表组件
charts: true,
// 详情设置
details: true,
// 对齐线
alignLine: true,
details: true
},
getters: {
getLayers(): boolean {
@@ -33,9 +31,6 @@ export const useChartLayoutStore = defineStore({
},
getDetails(): boolean {
return this.details
},
getAlignLine(): boolean {
return this.alignLine
}
},
actions: {