From 894f0c590a0c1fbabc9c704931afc34f7d141345 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 1 Jul 2025 15:45:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Modal/Drawer=E4=B8=AD=E4=BD=BF?= =?UTF-8?q?=E7=94=A8VxeTable=20tooltip=E9=9C=80=E8=A6=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=9B=B4=E9=AB=98=E7=9A=84z-index=20=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E8=A2=AB=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ apps/web-antd/package.json | 2 +- packages/effects/plugins/src/vxe-table/style.css | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb359556..1adad54e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.4.2 + +**REFACTOR** + +- Modal/Drawer中使用VxeTable tooltip需要设置更高的z-index 防止被遮挡 + # 1.4.1 **FEATURES** diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json index e5e9941c..fa2ac67a 100644 --- a/apps/web-antd/package.json +++ b/apps/web-antd/package.json @@ -1,6 +1,6 @@ { "name": "@vben/web-antd", - "version": "1.4.1", + "version": "1.4.2", "homepage": "https://vben.pro", "bugs": "https://github.com/vbenjs/vue-vben-admin/issues", "repository": { diff --git a/packages/effects/plugins/src/vxe-table/style.css b/packages/effects/plugins/src/vxe-table/style.css index e1421f14..8e29fb0b 100644 --- a/packages/effects/plugins/src/vxe-table/style.css +++ b/packages/effects/plugins/src/vxe-table/style.css @@ -123,3 +123,9 @@ html[data-vxe-ui-theme='dark'] .vxe-grid { .vxe-grid--layout-body-content-wrapper { overflow: hidden; } + +/* modal/drawer中使用 tooltip需要设置更高的z-index 防止被遮挡 */ +body:has(div[data-dismissable-layer]) .vxe-tooltip--wrapper { + /* tooltip直接在style中设置 需要!important来实现优先级覆盖 */ + z-index: calc(var(--popup-z-index) + 1) !important; +}