mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 19:17:07 +00:00
42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
import { Component } from 'react';
|
|
import { TipContainer, observer } from '@ali/lowcode-editor-core';
|
|
import classNames from 'classnames';
|
|
import { Skeleton } from '../skeleton';
|
|
import TopArea from './top-area';
|
|
import LeftArea from './left-area';
|
|
import LeftFixedPane from './left-fixed-pane';
|
|
import LeftFloatPane from './left-float-pane';
|
|
import Toolbar from './toolbar';
|
|
import MainArea from './main-area';
|
|
import BottomArea from './bottom-area';
|
|
import RightArea from './right-area';
|
|
import './workbench.less';
|
|
|
|
@observer
|
|
export class Workbench extends Component<{ skeleton: Skeleton, className?: string }> {
|
|
shouldComponentUpdate() {
|
|
return false;
|
|
}
|
|
|
|
render() {
|
|
const { skeleton, className } = this.props;
|
|
return (
|
|
<div className={classNames('lc-workbench', className)}>
|
|
<TopArea area={skeleton.topArea} />
|
|
<div className="lc-workbench-body">
|
|
<LeftArea area={skeleton.leftArea} />
|
|
<LeftFloatPane area={skeleton.leftFloatArea} />
|
|
<LeftFixedPane area={skeleton.leftFixedArea} />
|
|
<div className="lc-workbench-center">
|
|
<Toolbar area={skeleton.toolbar} />
|
|
<MainArea area={skeleton.mainArea} />
|
|
<BottomArea area={skeleton.bottomArea} />
|
|
</div>
|
|
<RightArea area={skeleton.rightArea} />
|
|
</div>
|
|
<TipContainer />
|
|
</div>
|
|
);
|
|
}
|
|
}
|