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

如何在antd表单中嵌套一块amis的表单,使用antd的form事件来收集amis表单的值和触发校验? #11753

Open
mylesshie opened this issue Mar 16, 2025 · 0 comments

Comments

@mylesshie
Copy link

实现场景:

您好,我们的项目是一个很多产品的项目, 这些产品的页面都大同小异,但是每个产品有部分表单内容都各不相同,目前我们考虑使用低代码的方式来填补这块内容,以便减少开发工作。
现在这是一个大的antd@3版本的表单,在中间有一块内容想要使用amis的表单来填充。

存在的问题:

1、我在antd@3使用form.validateFields和form.getFieldsValue时候,如何能同时收集到amis的表单内容呢?有办法做到这个吗?
2、如果1不能实现,我是否可以把antd表单封装为自定义组件?同时能透传form和其他属性给到amis内部的自定义组件表单上?这样可以实现1的需求吗?
3、编辑器内部的事件代码中能使用外部透传的数据吗?

当前方案:

以上问题是目前正在思考的业务实现方式,所以暂时还么有代码

code here...

非常感谢各位开发者,amis低代码框架目前是我调研过的感觉使用上最轻松的框架

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

1 participant