mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-04 09:15:16 +00:00
22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
import { Component } from 'react';
|
|
import classNames from 'classnames';
|
|
import { observer } from '@ali/lowcode-editor-core';
|
|
import Area from '../area';
|
|
import Panel from '../widget/panel';
|
|
import Widget from '../widget/widget';
|
|
|
|
@observer
|
|
export default class MainArea extends Component<{ area: Area<any, Panel | Widget> }> {
|
|
shouldComponentUpdate() {
|
|
return false;
|
|
}
|
|
render() {
|
|
const { area } = this.props;
|
|
return (
|
|
<div className={classNames('lc-main-area engine-workspacepane')}>
|
|
{area.container.items.map((item) => item.content)}
|
|
</div>
|
|
);
|
|
}
|
|
}
|