|
@@ -42,14 +42,6 @@
|
|
|
<img src="@/assets/icons/icon-thumbnail.svg" />
|
|
|
<p>缩略图</p>
|
|
|
</div>
|
|
|
- <div
|
|
|
- v-if="checkValid('issuePaper')"
|
|
|
- class="mark-tool-item"
|
|
|
- @click="toIssuePaper"
|
|
|
- >
|
|
|
- <img src="@/assets/icons/icon-issue-paper.svg" />
|
|
|
- <p>问题试卷</p>
|
|
|
- </div>
|
|
|
<div v-if="checkValid('sizeScale')" class="mark-tool-item tool-scale">
|
|
|
<div>
|
|
|
<span>Aa</span>
|
|
@@ -199,7 +191,6 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <MarkProblemDialog v-if="checkValid('issuePaper')" ref="problemRef" />
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
@@ -208,8 +199,6 @@ import { useMarkStore } from "@/store";
|
|
|
import { Modal } from "ant-design-vue";
|
|
|
import { updateUISetting } from "@/api/markPage";
|
|
|
|
|
|
-import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
|
-
|
|
|
const markStore = useMarkStore();
|
|
|
|
|
|
/**
|
|
@@ -217,7 +206,6 @@ const markStore = useMarkStore();
|
|
|
* paper:试卷
|
|
|
* answer:答案
|
|
|
* minimap:缩略图
|
|
|
- * issuePaper:问题试卷
|
|
|
* sizeScale:标记大小
|
|
|
* shortCut:快捷键
|
|
|
* specialTag:特殊标记
|
|
@@ -228,15 +216,12 @@ const { actions = [] } = defineProps<{
|
|
|
actions?: string[];
|
|
|
}>();
|
|
|
|
|
|
-type ShowModalFunc = () => void;
|
|
|
-
|
|
|
const checkValid = (name: string) => {
|
|
|
if (!actions.length) return true;
|
|
|
return actions.includes(name);
|
|
|
};
|
|
|
|
|
|
const emit = defineEmits(["allZeroSubmit"]);
|
|
|
-let problemRef = $ref<InstanceType<typeof MarkProblemDialog>>();
|
|
|
|
|
|
const toAllPage = () => {
|
|
|
markStore.allPaperModal = !markStore.allPaperModal;
|
|
@@ -253,9 +238,6 @@ const toPaper = () => {
|
|
|
markStore.setting.uiSetting["paper.modal"] =
|
|
|
!markStore.setting.uiSetting["paper.modal"];
|
|
|
};
|
|
|
-const toIssuePaper = () => {
|
|
|
- (problemRef.showModal as ShowModalFunc)();
|
|
|
-};
|
|
|
|
|
|
const toShortcut = () => {
|
|
|
markStore.setting.uiSetting["shortCut.modal"] =
|