mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-14 16:32:00 +08:00
7 lines
243 B
TypeScript
7 lines
243 B
TypeScript
/**
|
|
* Returns the parent node of the given element or the document body if the element is not provided.it
|
|
*/
|
|
export function getPopupContainer(node?: HTMLElement): HTMLElement {
|
|
return (node?.parentNode as HTMLElement) ?? document.body;
|
|
}
|