mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-10-22 10:23:09 +00:00
feat: 添加「是否显示快捷键盘」选项
This commit is contained in:
parent
6cf67d17c6
commit
f9498a3de6
@ -102,7 +102,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Quick Tools Section -->
|
||||
<div class="quick-tools ml-4" style="min-width: 180px;">
|
||||
<div class="quick-tools ml-4" style="min-width: 180px;" v-if="showQuickTools">
|
||||
<!-- Numeric Keypad -->
|
||||
<div class="numeric-keypad mb-4">
|
||||
<div class="keypad-row">
|
||||
@ -207,6 +207,7 @@
|
||||
|
||||
<script>
|
||||
import dataProvider from "@/utils/dataProvider";
|
||||
import { getSetting } from "@/utils/settings";
|
||||
|
||||
export default {
|
||||
name: "HomeworkEditDialog",
|
||||
@ -270,6 +271,9 @@ export default {
|
||||
return null;
|
||||
}
|
||||
return this.templateData.commonSubject.books;
|
||||
},
|
||||
showQuickTools() {
|
||||
return getSetting("display.showQuickTools");
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -19,6 +19,9 @@
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'display.enhancedTouchMode'" />
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'display.showQuickTools'" />
|
||||
|
||||
<v-divider class="my-2" />
|
||||
<setting-item :setting-key="'display.showAntiScreenBurnCard'" />
|
||||
|
||||
|
@ -177,6 +177,12 @@ const settingsDefinitions = {
|
||||
icon: "mdi-calendar-check",
|
||||
// 控制是否在主页显示考试看板按钮,指向考试安排页面
|
||||
},
|
||||
"display.showQuickTools": {
|
||||
type: "boolean",
|
||||
default: true,
|
||||
description: "是否显示快捷键盘",
|
||||
icon: "mdi-dialpad",
|
||||
},
|
||||
// 服务器设置(合并了数据提供者设置)
|
||||
"server.domain": {
|
||||
type: "string",
|
||||
|
Loading…
x
Reference in New Issue
Block a user