rekit / antd-form-builder

Dynamic meta driven React forms based on antd.
https://rekit.github.io/antd-form-builder
MIT License
425 stars 88 forks source link

Adding new components like antd 4 Upload #71

Open yagiz-aydin opened 3 years ago

yagiz-aydin commented 3 years ago

Antd version 4 components are basically added on Antd-Form-Builder Rekit. But, other components like photo upload added as a custom component. Form Builder deletes all duplicated codes on so many forms. For the eliminating custom components, this issue opened for adding antd 4 Upload component like as select, input ext.. https://ant.design/components/upload/

supnate commented 3 years ago

You can just use the component reference rather than a string for upload component. Like:

import { Upload } from 'antd';
//...
const meta = { widget: Upload, ..};
//...