refactor: package chart-ui integrated into plugins (#4238)

* refactor: package chart-ui integrated into plugins

* fix: lint error
This commit is contained in:
Vben
2024-08-26 21:42:56 +08:00
committed by GitHub
parent fd7b3479b4
commit 8a0b1e0c72
37 changed files with 177 additions and 79 deletions

View File

@@ -1,3 +1,6 @@
/**
* 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;
}