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

能不能通过uischema重置schema中的object为其他类型的 #332

Open
xiatian002 opened this issue Oct 30, 2023 · 4 comments
Open

Comments

@xiatian002
Copy link

反馈问题请先查看文档和务必提供详细的复现代码,遵循如下格式,描述不清楚的问题将会直接关闭。

vue和ui框架

vue2 elementui,1.17.1

问题描述

schema中有部分object类型数据,想要将object类型对象重置成string对象或array对象。看到用户手册里能找到将string重置为textarea,但是没看到重置成其他类型的例子。

如何复现

可以详细介绍你的复现场景或者相关代码。

必要时提供复现demo,如codepen,github 复现仓库,playground分享链接等

期望的结果

....

@xiatian002
Copy link
Author

使用ui:field方式解决了问题。并不用重置object类型,通过ui:field重置了前端样式。

@lljj-x
Copy link
Owner

lljj-x commented Nov 3, 2023

奈斯,object 只能field

@xiatian002
Copy link
Author

奈斯,object 只能field

大佬,我这边有个需求,在field里自定义了多个输入项,但是想组合成一个object回传给form,这应该怎么实现

@lljj-x
Copy link
Owner

lljj-x commented Nov 7, 2023

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