alibaba / lowcode-engine

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

自定义文件上传的Setter #3104

Open yuanAIhan opened 2 days ago

yuanAIhan commented 2 days ago

如果在使用low code engine的时候,想实现一个自定义文件上传的setter组件,类似于使用antd design里面的Upload组件用来放在setter里面,请问目前支持吗?

lvmaoer commented 1 day ago
const CustomSetterSamplePlugin = (ctx: IPublicModelPluginContext) => ({
    async init() {
      const {setters} = ctx;
      setters.registerSetter('CustomSetter', CustomSetter);
    }
});

plugins.register(CustomSetterSamplePlugin)

理论上自定义setter就跟正常写画面一样都能做