|
@@ -66,29 +66,7 @@
|
|
进度<span class="highlight-text">{{ progress ?? "-" }}%</span>
|
|
进度<span class="highlight-text">{{ progress ?? "-" }}%</span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- <ul class="tw-flex tw-gap-2 tw-mb-0">
|
|
|
|
- <li @click="upScale" title="放大">
|
|
|
|
- <ZoomInOutlined
|
|
|
|
- class="icon-font icon-font-size-20 tw-cursor-pointer"
|
|
|
|
- :style="{
|
|
|
|
- color: greaterThanOneScale ? 'red' : 'white',
|
|
|
|
- }"
|
|
|
|
- />
|
|
|
|
- </li>
|
|
|
|
- <li @click="downScale" title="缩小">
|
|
|
|
- <ZoomOutOutlined
|
|
|
|
- class="icon-font icon-font-size-20 tw-cursor-pointer"
|
|
|
|
- :style="{
|
|
|
|
- color: lessThanOneScale ? 'red' : 'white',
|
|
|
|
- }"
|
|
|
|
- />
|
|
|
|
- </li>
|
|
|
|
- <li @click="normalScale" title="适应">
|
|
|
|
- <FullscreenOutlined
|
|
|
|
- class="icon-font icon-font-size-20 tw-cursor-pointer"
|
|
|
|
- />
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <ZoomPaper :store="store" />
|
|
<div>
|
|
<div>
|
|
<a-dropdown class="header-bg-color">
|
|
<a-dropdown class="header-bg-color">
|
|
<template #overlay v-if="!store.setting.forceMode">
|
|
<template #overlay v-if="!store.setting.forceMode">
|
|
@@ -243,9 +221,6 @@ import { doLogout } from "@/api/markPage";
|
|
import { computed, defineEmit, ref, watchEffect } from "vue";
|
|
import { computed, defineEmit, ref, watchEffect } from "vue";
|
|
import { store } from "./store";
|
|
import { store } from "./store";
|
|
import {
|
|
import {
|
|
- ZoomInOutlined,
|
|
|
|
- ZoomOutOutlined,
|
|
|
|
- FullscreenOutlined,
|
|
|
|
SnippetsOutlined,
|
|
SnippetsOutlined,
|
|
UserOutlined,
|
|
UserOutlined,
|
|
PoweroffOutlined,
|
|
PoweroffOutlined,
|
|
@@ -259,8 +234,9 @@ import MarkSwitchGroupDialog from "./MarkSwitchGroupDialog.vue";
|
|
import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
import { isNumber } from "lodash";
|
|
import { isNumber } from "lodash";
|
|
import { Modal } from "ant-design-vue";
|
|
import { Modal } from "ant-design-vue";
|
|
|
|
+import ZoomPaper from "@/components/ZoomPaper.vue";
|
|
|
|
|
|
-const emit = defineEmit(["should-reload-history"]);
|
|
|
|
|
|
+defineEmit(["should-reload-history"]);
|
|
|
|
|
|
const modeName = computed(() =>
|
|
const modeName = computed(() =>
|
|
store.setting.mode === ModeEnum.TRACK ? "轨迹模式" : "普通模式"
|
|
store.setting.mode === ModeEnum.TRACK ? "轨迹模式" : "普通模式"
|
|
@@ -293,29 +269,9 @@ const progress = computed(() => {
|
|
return p;
|
|
return p;
|
|
});
|
|
});
|
|
|
|
|
|
-const upScale = () => {
|
|
|
|
- const s = store.setting.uiSetting["answer.paper.scale"];
|
|
|
|
- if (s < 3)
|
|
|
|
- store.setting.uiSetting["answer.paper.scale"] = +(s + 0.2).toFixed(1);
|
|
|
|
-};
|
|
|
|
-const downScale = () => {
|
|
|
|
- const s = store.setting.uiSetting["answer.paper.scale"];
|
|
|
|
- if (s > 0.2)
|
|
|
|
- store.setting.uiSetting["answer.paper.scale"] = +(s - 0.2).toFixed(1);
|
|
|
|
-};
|
|
|
|
-const normalScale = () => {
|
|
|
|
- store.setting.uiSetting["answer.paper.scale"] = 1;
|
|
|
|
-};
|
|
|
|
const toggleHistory = () => {
|
|
const toggleHistory = () => {
|
|
store.historyOpen = !store.historyOpen;
|
|
store.historyOpen = !store.historyOpen;
|
|
};
|
|
};
|
|
-const greaterThanOneScale = computed(() => {
|
|
|
|
- return store.setting.uiSetting["answer.paper.scale"] > 1;
|
|
|
|
-});
|
|
|
|
-const lessThanOneScale = computed(() => {
|
|
|
|
- return store.setting.uiSetting["answer.paper.scale"] < 1;
|
|
|
|
-});
|
|
|
|
-
|
|
|
|
const logout = () => {
|
|
const logout = () => {
|
|
doLogout();
|
|
doLogout();
|
|
};
|
|
};
|