fix: 钉住行为调整

This commit is contained in:
林熠 2020-08-11 17:53:52 +08:00
parent d601d5e1a9
commit 91a390e3a9

View File

@ -63,6 +63,13 @@ export default class LeftFloatPane extends Component<{ area: Area<any, Panel> }>
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<any, Panel> }>
}
render() {
console.log('00000');
const { area } = this.props;
const width = area.current?.config.props?.width;
const hideTitleBar = area.current?.config.props?.hideTitleBar;