mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增移动快捷键与全局设置
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user