import { Component, Fragment } from 'react'; import classNames from 'classnames'; import { observer } from '@alilc/lowcode-editor-core'; import { Area } from '../area'; import { PanelConfig } from '../types'; import { Panel } from '../widget/panel'; @observer export default class LeftFixedPane extends Component<{ area: Area }> { componentDidUpdate() { // FIXME: dirty fix, need deep think this.props.area.skeleton.editor.get('designer')?.touchOffsetObserver(); } render() { const { area } = this.props; const width = area.current?.config.props?.width; const style = width ? { width, } : undefined; return (
); } } @observer class Contents extends Component<{ area: Area }> { render() { const { area } = this.props; return {area.container.items.map((panel) => panel.content)}; } }