refactor: getVxePopupContainer与新版Vxe不兼容 先返回body(会导致滚动不跟随)后续版本再优化

This commit is contained in:
dap 2025-04-06 17:41:00 +08:00
parent 3f037f146b
commit ae5d45763f
2 changed files with 7 additions and 4 deletions

View File

@ -51,6 +51,7 @@
- vditor(Markdown)升级3.10.9 - vditor(Markdown)升级3.10.9
- 老版本的文件/图片上传将于下个版本移除 - 老版本的文件/图片上传将于下个版本移除
- useDescription将于下个版本移除 - useDescription将于下个版本移除
- getVxePopupContainer与新版Vxe不兼容 先返回body(会导致滚动不跟随)后续版本再优化
# 1.2.3 # 1.2.3

View File

@ -21,9 +21,11 @@ export function getVxePopupContainer(_node?: HTMLElement): HTMLElement {
* body () * body ()
* *
*/ */
if (_node?.closest('td.fixed--width')) { // if (_node?.closest('td.fixed--width')) {
return document.body; // return document.body;
} // }
// 返回parent元素 /**
* body
*/
return _node?.parentElement ?? document.body; return _node?.parentElement ?? document.body;
} }