wip(table): perf table #136,146,134

This commit is contained in:
vben
2020-12-29 23:37:40 +08:00
parent 405d7466dd
commit 116a1f7745
64 changed files with 1858 additions and 929 deletions

View File

@@ -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;
}
/**