fix: improve layout boundary processing (#4423)

This commit is contained in:
Vben
2024-09-18 22:21:23 +08:00
committed by GitHub
parent 26d43ef822
commit 2c22825546
11 changed files with 287 additions and 201 deletions

View File

@@ -209,7 +209,11 @@ function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties {
};
}
function handleMouseenter() {
function handleMouseenter(e: MouseEvent) {
if (e?.offsetX < 10) {
return;
}
// 未开启和未折叠状态不生效
if (expandOnHover.value) {
return;