Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义文件上传的Setter #3104

Open
yuanAIhan opened this issue Oct 28, 2024 · 1 comment
Open

自定义文件上传的Setter #3104

yuanAIhan opened this issue Oct 28, 2024 · 1 comment

Comments

@yuanAIhan
Copy link

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

@lvmaoer
Copy link

lvmaoer commented Oct 29, 2024

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

plugins.register(CustomSetterSamplePlugin)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants