mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-24 18:58:11 +00:00
fix: 修复鼠标从 left-float 面板滑出后, 面板关闭的问题
This commit is contained in:
parent
212bfbded8
commit
835ad4bac4
@ -40,8 +40,16 @@ export default class LeftFloatPane extends Component<{ area: Area<any, Panel> }>
|
|||||||
.contentWindow.document.documentElement.contains(target)) {
|
.contentWindow.document.documentElement.contains(target)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// 点击设置区
|
||||||
|
if (document.querySelector('.lc-right-area')?.contains(target)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// 点击非编辑区域的popup/dialog,插件栏左侧等不触发失焦
|
// 点击非编辑区域的popup/dialog,插件栏左侧等不触发失焦
|
||||||
if (!document.querySelector('.lc-workbench')?.contains(target) || document.querySelector('.lc-left-area')?.contains(target)) {
|
if (!document.querySelector('.lc-workbench')?.contains(target)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// 排除设置区,iframe 之后,都不算失焦
|
||||||
|
if (document.querySelector('.lc-workbench-body')?.contains(target)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const docks = area.current?.getAssocDocks();
|
const docks = area.current?.getAssocDocks();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user