From 91a390e3a9f7466265bf57399e3bc042a3ee0615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=86=A0?= Date: Tue, 11 Aug 2020 17:53:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=92=89=E4=BD=8F=E8=A1=8C=E4=B8=BA?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-skeleton/src/layouts/left-float-pane.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/editor-skeleton/src/layouts/left-float-pane.tsx b/packages/editor-skeleton/src/layouts/left-float-pane.tsx index 6d184c5ac..afb116a02 100644 --- a/packages/editor-skeleton/src/layouts/left-float-pane.tsx +++ b/packages/editor-skeleton/src/layouts/left-float-pane.tsx @@ -63,6 +63,13 @@ export default class LeftFloatPane extends Component<{ area: Area }> const { area } = this.props; if (area.visible) { this.focusing?.active(); + // 关闭当前fixed区域的面板 + // TODO: 看看有没有更合适的地方 + const fixedContainer = area?.skeleton?.leftFixedArea?.container; + const currentFixed = fixedContainer?.current; + if (currentFixed) { + fixedContainer.unactive(currentFixed); + } } else { this.focusing?.suspense(); } @@ -90,6 +97,7 @@ export default class LeftFloatPane extends Component<{ area: Area }> } render() { + console.log('00000'); const { area } = this.props; const width = area.current?.config.props?.width; const hideTitleBar = area.current?.config.props?.hideTitleBar;