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

master
dap 10 months ago
parent 3f037f146b
commit ae5d45763f

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

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

Loading…
Cancel
Save