feat: 新增移动快捷键与全局设置

This commit is contained in:
奔跑的面条
2022-04-01 10:25:13 +08:00
parent b2ed8a57a7
commit daf5537aea
14 changed files with 126 additions and 31 deletions
+2
View File
@@ -2,6 +2,7 @@ export enum SettingStoreEnums {
HIDE_PACKAGE_ONE_CATEGORY = 'hidePackageOneCategory',
CHANGE_LANG_RELOAD = 'changeLangReload',
ASIDE_ALL_COLLAPSED = 'asideAllCollapsed',
CHART_MOVE_DISTANCE = 'chartMoveDistance',
CHART_ALIGN_RANGE = 'chartAlignRange',
}
@@ -9,5 +10,6 @@ export interface SettingStoreType {
[SettingStoreEnums.HIDE_PACKAGE_ONE_CATEGORY]: boolean
[SettingStoreEnums.CHANGE_LANG_RELOAD]: boolean
[SettingStoreEnums.ASIDE_ALL_COLLAPSED]: boolean
[SettingStoreEnums.CHART_MOVE_DISTANCE]: number
[SettingStoreEnums.CHART_ALIGN_RANGE]: number
}
@@ -3,7 +3,8 @@ import {
hidePackageOneCategory,
changeLangReload,
asideAllCollapsed,
chartAlignRange
chartAlignRange,
chartMoveDistance
} from '@/settings/systemSetting'
import { asideCollapsedWidth } from '@/settings/designSetting'
import { SettingStoreType } from './settingStore.d'
@@ -21,7 +22,8 @@ export const useSettingStore = defineStore({
hidePackageOneCategory,
changeLangReload,
asideAllCollapsed,
chartAlignRange
chartMoveDistance,
chartAlignRange,
},
getters: {
getHidePackageOneCategory(): boolean {
@@ -36,6 +38,9 @@ export const useSettingStore = defineStore({
getAsideCollapsedWidth(): number {
return this.asideAllCollapsed ? 0 : asideCollapsedWidth
},
getChartMoveDistance(): number {
return this.chartMoveDistance
},
getChartAlignRange(): number {
return this.chartAlignRange
}