import { Component } from 'react'; import { TipContainer, observer } from '@alilc/lowcode-editor-core'; import { WindowView } from '../view/window-view'; import classNames from 'classnames'; import TopArea from './top-area'; import LeftArea from './left-area'; import LeftFixedPane from './left-fixed-pane'; import LeftFloatPane from './left-float-pane'; import MainArea from './main-area'; import BottomArea from './bottom-area'; import './workbench.less'; import { SkeletonContext } from '../skeleton-context'; import { EditorConfig, PluginClassSet } from '@alilc/lowcode-types'; import { Workspace } from '../workspace'; import SubTopArea from './sub-top-area'; @observer export class Workbench extends Component<{ workspace: Workspace; config?: EditorConfig; components?: PluginClassSet; className?: string; topAreaItemClassName?: string; }> { constructor(props: any) { super(props); const { config, components, workspace } = this.props; const { skeleton } = workspace; skeleton.buildFromConfig(config, components); } render() { const { workspace, className, topAreaItemClassName } = this.props; const { skeleton } = workspace; return (
{ workspace.windows.map(d => ( )) }
{/* */}
); } }