mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-04 07:27:41 +08:00
perf: 优化标签页右键菜单超出边缘检测功能,确保其始终完整显示在可视区
This commit is contained in:
parent
395ccd2154
commit
4c80abfe55
@ -423,7 +423,7 @@ function openMenu(tag, e) {
|
||||
}
|
||||
|
||||
currentSelect.value = tag;
|
||||
const menuMinWidth = 105;
|
||||
const menuMinWidth = 140;
|
||||
const offsetLeft = unref(containerDom).getBoundingClientRect().left;
|
||||
const offsetWidth = unref(containerDom).offsetWidth;
|
||||
const maxLeft = offsetWidth - menuMinWidth;
|
||||
|
Loading…
x
Reference in New Issue
Block a user