From f928e79c1fce562fcd4255cc0fc9afaf906695f6 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 26 Jul 2026 08:10:58 -0600 Subject: [PATCH] update --- src/oj/problem/components/Form.vue | 82 ++++++++++++------------------ 1 file changed, 32 insertions(+), 50 deletions(-) diff --git a/src/oj/problem/components/Form.vue b/src/oj/problem/components/Form.vue index 6ea28cc..6c55994 100644 --- a/src/oj/problem/components/Form.vue +++ b/src/oj/problem/components/Form.vue @@ -17,7 +17,6 @@ import { useUserStore } from "shared/store/user" import storage from "utils/storage" import type { LANGUAGE } from "utils/types" import StatisticsPanel from "shared/components/StatisticsPanel.vue" -import IconButton from "shared/components/IconButton.vue" import { Icon } from "@iconify/vue" import { NFlex } from "naive-ui" import SubmitCode from "./SubmitCode.vue" @@ -72,35 +71,28 @@ const showGoSubmissionButton = computed(() => { else return false }) -// 移动端把「提交信息 / 统计信息 / 复制代码 / 重置代码」收进下拉菜单,节省横向空间 -const renderIcon = (icon: string) => () => h(Icon, { icon, width: 18 }) - const mobileMenuOptions = computed(() => { const options: DropdownOption[] = [] if (showGoSubmissionButton.value) { options.push({ label: "提交信息", key: "submissions", - icon: renderIcon("streamline-ultimate-color:task-list-text-1"), }) } if (userStore.isTeacherOrAbove) { options.push({ label: "统计信息", key: "statistics", - icon: renderIcon("streamline-ultimate-color:analytics-pie-2"), }) } if (codeStore.code.language !== "Flowchart") { options.push({ label: "复制代码", key: "copy", - icon: renderIcon("streamline-ultimate-color:copy-paste-1"), }) options.push({ label: "重置代码", key: "reset", - icon: renderIcon("streamline-ultimate-color:synchronize-arrow"), }) } return options @@ -211,41 +203,38 @@ onMounted(() => { - + > + 提交信息 + - + > + 统计信息 + @@ -255,25 +244,17 @@ onMounted(() => { :options="mobileMenuOptions" @select="handleMobileSelect" > - - 更多 - - + 更多 - + > + 编辑题目 +