From 2d82505330d30a9bcc6d71fb806e4eb0c7852d61 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 23 Jul 2026 15:14:25 +0800 Subject: [PATCH] fix: dropdown menu responsiveness and improve dialog handling (#8187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复用户下拉框小部件菜单行点击无响应及弹框闪退 - 主题/时区/全屏/通知菜单行补充 @select 处理器,点击行任意位置即可触发 - 时区设置弹框宿主移出 DropdownMenu(showButton 模式),修复弹框随下拉框关闭而闪退 - 通知组件暴露 toggle 供下拉框调用 - 偏好设置小部件文案精简,positionMap 顺序调整 * feat: draggable-list.vue 直接复用 SelectItem,用法和 tabbar.vue 完全一致 --- .gitignore | 1 + .../src/widgets/notification/notification.vue | 14 ++-- .../preferences/blocks/draggable-list.vue | 71 +++++++++---------- .../preferences/blocks/layout/widget.vue | 2 +- .../src/widgets/timezone/timezone-button.vue | 11 ++- .../widgets/user-dropdown/user-dropdown.vue | 49 +++++++++++-- .../locales/src/langs/zh-CN/preferences.json | 12 ++-- 7 files changed, 101 insertions(+), 59 deletions(-) diff --git a/.gitignore b/.gitignore index 20fba96c..3a7e7ced 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ vite.config.ts.* skills-lock.json .atomcode datalog +.playwright-mcp diff --git a/packages/effects/layouts/src/widgets/notification/notification.vue b/packages/effects/layouts/src/widgets/notification/notification.vue index 7d0f5105..d749a4fc 100644 --- a/packages/effects/layouts/src/widgets/notification/notification.vue +++ b/packages/effects/layouts/src/widgets/notification/notification.vue @@ -43,18 +43,20 @@ const close = () => { open.value = false; }; -const handleViewAll = () => { +function handleViewAll() { emit('viewAll'); close(); -}; +} -const handleMakeAll = () => { +function handleMakeAll() { emit('makeAll'); -}; +} -const handleClear = () => { +function handleClear() { emit('clear'); -}; +} + +defineExpose({ toggle });