mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
Merge branch 'fix/panel-focus' into 'release/1.0.32'
fix: 修复鼠标从 left-float 面板滑出后, 面板关闭的问题 See merge request !1129455
This commit is contained in:
commit
123c5596a3
@ -40,8 +40,16 @@ export default class LeftFloatPane extends Component<{ area: Area<any, Panel> }>
|
||||
.contentWindow.document.documentElement.contains(target)) {
|
||||
return false;
|
||||
}
|
||||
// 点击设置区
|
||||
if (document.querySelector('.lc-right-area')?.contains(target)) {
|
||||
return false;
|
||||
}
|
||||
// 点击非编辑区域的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;
|
||||
}
|
||||
const docks = area.current?.getAssocDocks();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user