alibaba / lowcode-engine

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

Question : Blocks feature, functions and event handlers #1380

Open aderici opened 1 year ago

aderici commented 1 year ago

Hi, as far as i can understand, all functions (forexample event handlers) are defined at the Page level. I understand this makes it easy for components to interact with each other and data sources.

Imagine a scenario where i have 5 different components that interact with each other. And then i want to provide this group of 5 elements as a block. None of the functions / interaction will be saved so it will be less than optimal.

Is there a workaround to this? There is a "ConfigProvider" component as i can see which is very similar to a Page. Maybe a way to define functions at the nearest configprovider level and saving the configprovider as a block?

Best regards,

JackLian commented 1 year ago

actually there is a Component Type, works just like a react component, unfortunately our demo for this is not ready yet. and it`s not easy to describe how to implement that without a demo, we will provide that in about 2 - 3 months

aderici commented 1 year ago

Thank you @JackLian for the answer. Is there a roadmap of the features you're looking to implement in the future?

JackLian commented 1 year ago

well, not really a roadmap, but we do have an article about what we are about to do in the next few months , but it`s in chinese, maybe you can try google translate it https://xie.infoq.cn/article/d91d4a66fc647a783b33efe39

if google tranlate is not working, here are some of the planning features