From 9e16f6358de490003e7ba1a6b669cff13bcf4d5f Mon Sep 17 00:00:00 2001 From: caoxiaozhu Date: Sat, 11 Jul 2026 14:48:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20AppConfirmDialog?= =?UTF-8?q?=20=E9=80=9A=E7=94=A8=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 基于 Teleport 的 Promise 式确认弹窗,支持键盘关闭、焦点管理、可访问性属性与响应式触控区域,供路由离开等场景替代 window.confirm。 --- frontend/src/components/AppConfirmDialog.vue | 366 +++++++++++++++++++ 1 file changed, 366 insertions(+) create mode 100644 frontend/src/components/AppConfirmDialog.vue diff --git a/frontend/src/components/AppConfirmDialog.vue b/frontend/src/components/AppConfirmDialog.vue new file mode 100644 index 0000000..5c92b2b --- /dev/null +++ b/frontend/src/components/AppConfirmDialog.vue @@ -0,0 +1,366 @@ + + + + +