1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-10-22 10:23:09 +00:00

Merge pull request #4 from DryIce-cc/main

feat: 添加「是否显示快捷键盘」选项
This commit is contained in:
孙悟元 2025-09-21 09:01:12 +08:00 committed by GitHub
commit 3a9781c1ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 1 deletions

View File

@ -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">
@ -201,12 +201,18 @@
</div>
</div>
</v-card-text>
<div class="text-center text-body-2 text-disabled mb-5">
点击空白处完成编辑
</div>
</v-card>
</v-dialog>
</template>
<script>
import dataProvider from "@/utils/dataProvider";
import { getSetting } from "@/utils/settings";
export default {
name: "HomeworkEditDialog",
@ -270,6 +276,9 @@ export default {
return null;
}
return this.templateData.commonSubject.books;
},
showQuickTools() {
return getSetting("display.showQuickTools");
}
},
watch: {

View File

@ -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'" />

View File

@ -177,6 +177,12 @@ const settingsDefinitions = {
icon: "mdi-calendar-check",
// 控制是否在主页显示考试看板按钮,指向考试安排页面
},
"display.showQuickTools": {
type: "boolean",
default: true,
description: "是否显示快捷键盘",
icon: "mdi-dialpad",
},
// 服务器设置(合并了数据提供者设置)
"server.domain": {
type: "string",