From 85ea1396bb09a0cda6f03136f8570df2a16dc661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=E6=98=B5=E7=A7=B0=E9=87=8D=E8=A6=81=E5=90=97O?= Date: Sun, 15 Mar 2026 21:03:34 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(popup):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=94=BB=E6=9D=BF=E5=8A=9F=E8=83=BD=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了画板菜单项及相关功能代码 - 移除了画板相关的导入和函数定义 - 将弹窗默认项目数从3调整为2,减小弹窗高度 - 更新了弹窗尺寸计算逻辑以适应新的项目数量 ``` --- src-tauri/src/window/create_popup_window.rs | 2 +- src/other_pages/popup-window/popup-window.vue | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src-tauri/src/window/create_popup_window.rs b/src-tauri/src/window/create_popup_window.rs index 801acd4..58c0da4 100644 --- a/src-tauri/src/window/create_popup_window.rs +++ b/src-tauri/src/window/create_popup_window.rs @@ -49,7 +49,7 @@ pub async fn create_popup_window_impl(app: &AppHandle, target: &T /// 根据用户登录状态和课程选择情况动态计算弹出窗口高度 pub fn calculate_popup_size_sync() -> PopupSize { // 默认基础项目数 - let item_num = 3; + let item_num = 2; // 根据项目数计算高度,每个项目40像素,加上边距2像素 let popup_height = 40 * item_num + 2; let popup_width = 180; diff --git a/src/other_pages/popup-window/popup-window.vue b/src/other_pages/popup-window/popup-window.vue index 1315ec7..33dfc67 100644 --- a/src/other_pages/popup-window/popup-window.vue +++ b/src/other_pages/popup-window/popup-window.vue @@ -11,11 +11,6 @@ 打开主窗口 - -