From 884c4f39fd134cf5632d7d83f62f990e45f13c4f Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 15 Jan 2026 10:07:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(antd):=20=E7=A7=BB=E9=99=A4Popconfirm?= =?UTF-8?q?=E4=B8=AD=E5=B7=B2=E5=BA=9F=E5=BC=83=E7=9A=84getVxePopupContain?= =?UTF-8?q?er=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit antd已支持滚动跟随,不再需要手动指定getVxePopupContainer属性。删除相关代码及工具函数,简化实现。 --- .../src/views/dashboard/analytics/change.md | 1 + .../src/views/monitor/logininfor/index.vue | 2 - .../src/views/monitor/online/index.vue | 4 +- .../src/views/system/client/index.vue | 2 - .../src/views/system/config/index.vue | 2 - apps/web-antd/src/views/system/dept/index.vue | 3 +- apps/web-antd/src/views/system/menu/index.vue | 8 +-- .../src/views/system/notice/index.vue | 2 - .../src/views/system/oss-config/index.vue | 2 - apps/web-antd/src/views/system/oss/index.vue | 2 - apps/web-antd/src/views/system/post/index.vue | 2 - .../src/views/system/role-assign/index.vue | 2 - apps/web-antd/src/views/system/role/index.vue | 2 - .../src/views/system/tenant/index.vue | 3 - .../src/views/system/tenantPackage/index.vue | 2 - apps/web-antd/src/views/tool/gen/index.vue | 3 - .../src/views/workflow/category/index.vue | 2 +- .../src/views/workflow/leave/index.vue | 3 - .../workflow/processDefinition/index.vue | 4 -- .../views/workflow/processInstance/index.vue | 2 - .../src/views/workflow/spel/index.vue | 4 +- .../utils/src/helpers/get-popup-container.ts | 56 ------------------- 22 files changed, 6 insertions(+), 107 deletions(-) diff --git a/apps/web-antd/src/views/dashboard/analytics/change.md b/apps/web-antd/src/views/dashboard/analytics/change.md index da2327ad..b0afe4ed 100644 --- a/apps/web-antd/src/views/dashboard/analytics/change.md +++ b/apps/web-antd/src/views/dashboard/analytics/change.md @@ -17,6 +17,7 @@ - 使用`version-polling`替代自带的版本检测更新 样式更新 在worker执行 不会阻塞主线程 - 字典常量enum从`packages/@core/base/shared/src/constants`移动到`@vben/constants`下 需要移动文件位置(导入不需要更改) - Switch的value只能是boolean值 之前可以为 string/number/boolean (antd组件变化) +- Popconfirm不再需要 `:get-popup-container="getVxePopupContainer"` antd已经支持滚动跟随 故`getVxePopupContainer`已经移除 ## 已知问题 diff --git a/apps/web-antd/src/views/monitor/logininfor/index.vue b/apps/web-antd/src/views/monitor/logininfor/index.vue index a856861d..6cf7ac1a 100644 --- a/apps/web-antd/src/views/monitor/logininfor/index.vue +++ b/apps/web-antd/src/views/monitor/logininfor/index.vue @@ -7,7 +7,6 @@ import type { LoginLog } from '#/api/monitor/logininfo/model'; import { ref } from 'vue'; import { Page, useVbenModal } from '@vben/common-ui'; -import { getVxePopupContainer } from '@vben/utils'; import { Modal, Popconfirm, Space } from 'antdv-next'; @@ -189,7 +188,6 @@ function handleDownloadExcel() { {{ $t('pages.common.info') }}
在线用户列表 (共 - {{ onlineCount }} + {{ onlineCount }} 人在线)