mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:47:28 +08:00
wip(table): perf table #136,146,134
This commit is contained in:
@@ -8,10 +8,7 @@ export const now = () => Date.now();
|
||||
* @description: Set ui mount node
|
||||
*/
|
||||
export function getPopupContainer(node?: HTMLElement): HTMLElement {
|
||||
if (node) {
|
||||
return node.parentNode as HTMLElement;
|
||||
}
|
||||
return document.body;
|
||||
return (node?.parentNode as HTMLElement) ?? document.body;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user