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

This commit is contained in:
奔跑的面条
2022-04-01 10:25:13 +08:00
parent 819ad34481
commit 089bb8945a
14 changed files with 126 additions and 31 deletions
+3
View File
@@ -0,0 +1,3 @@
import GoSystemSet from './index.vue';
export { GoSystemSet };
@@ -74,7 +74,7 @@ const list = reactive<ListType[]>([
value: settingStore.getAsideAllCollapsed,
type: 'switch',
name: '菜单折叠',
desc: '首页菜单折叠时隐藏全部'
desc: '首页菜单折叠时隐藏至界面外'
},
{
key: SettingStoreEnums.HIDE_PACKAGE_ONE_CATEGORY,
@@ -89,7 +89,17 @@ const list = reactive<ListType[]>([
type: 'switch',
name: '切换语言',
desc: '切换语言重新加载页面',
tip: '若遇到部分区域语言切换失败,则开启'
tip: '若遇到部分区域语言切换失败,则建议开启'
},
{
key: SettingStoreEnums.CHART_MOVE_DISTANCE,
value: settingStore.getChartMoveDistance,
type: 'number',
name: '移动距离',
min: 1,
step: 1,
suffix: 'px',
desc: '方向键控制图标移动的距离'
},
{
key: SettingStoreEnums.CHART_ALIGN_RANGE,
@@ -97,10 +107,10 @@ const list = reactive<ListType[]>([
type: 'number',
name: '吸附距离',
min: 10,
suffix: 'px',
step: 2,
suffix: 'px',
desc: '移动图表时的吸附距离'
}
},
])
const closeHandle = () => {
-3
View File
@@ -1,3 +0,0 @@
import SystemSet from './index.vue';
export { SystemSet };
+2 -2
View File
@@ -19,7 +19,7 @@
</n-dropdown>
<!-- 系统设置 model -->
<system-set v-model:modelShow="modelShow"></system-set>
<go-system-set v-model:modelShow="modelShow"></go-system-set>
</template>
<script lang="ts" setup>
@@ -27,7 +27,7 @@ import { h, ref } from 'vue'
import { NAvatar, NText } from 'naive-ui'
import { renderIcon } from '@/utils'
import { openDoc, logout, renderLang } from '@/utils'
import { SystemSet } from '@/components/SystemSet/index'
import { GoSystemSet } from '@/components/GoSystemSet/index'
import Person from './person.png'
import { icon } from '@/plugins'