alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.67k stars 2.55k forks source link

如何重写DesignerPlugin #2790

Open starsoul666 opened 11 months ago

starsoul666 commented 11 months ago

想要在DesignerView外面增加一些内容,需要替换掉下面的面板

skeleton.add({
          area: 'mainArea',
          name: 'designer',
          type: 'Widget',
          content: <DesignerPlugin
            engineConfig={config}
            engineEditor={editor}
          />,
        });

DesignerPlugin里面使用了DesignerView, 如何获取到DesignerView组件,想要实现的效果是

return (
<div>
     <div>此处需要增加功能</div>
      <DesignerView
        onMount={this.handleDesignerMount}
        className="lowcode-plugin-designer"
        editor={editor}
        name={editor.viewName}
        designer={editor.get('designer')}
        componentMetadatas={componentMetadatas}
        disableDragGhost={disableDragGhost}
        simulatorProps={{
          library,
          utilsMetadata,
          extraEnvironment,
          renderEnv,
          device,
          locale,
          designMode,
          deviceClassName,
          simulatorUrl,
          requestHandlersMap,
        }}
      />
    );
</div>

只是想在DesignerView外面包一层东西,不改变DesignerView组件的内容

liujuping commented 10 months ago

这块没有提供相关的便捷能力。暂时也没有计划。