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

建议 #1

Open
knilink opened this issue Jul 5, 2017 · 6 comments
Open

建议 #1

knilink opened this issue Jul 5, 2017 · 6 comments

Comments

@knilink
Copy link

knilink commented Jul 5, 2017

antd和react-jsonschema-form(rjsf)的重度用户路过。

其实不必完全重写吧(虽然rjsf本身还有很多问题,重写也是迟早的事),可以先做一套基于antd的定制widgets/fiels/templates然后runtime就用rjsf渲染就可以了啊。

不知道repo主出于什么目的建这个项目(当然,能摆脱boostrap也是件大好事)。虽然antd自带的表单不怎么好用,但rjsf一段时间用下来发现其并不能成为一个通用的解决方案,只适简单表单的合快速成型。首先个人觉得其本身理论上不可能完全支持jsonschema,然后现实中各种带条件的表单,再加上jsonschema validation结果对一般用户也不友好("xxx is not a type of string"哪个小白看得懂),导致用起来也是痛点满满。

@eddyzhang1986
Copy link
Owner

@knilink 兄台的技术栈和我差不的,并且动态表单这个东西应用的很广
放弃模板机制的rc对 这个东西的支持属于先天残疾,依靠第三方类库比如
rjsf这种东西也只能缓解,再者除了rjsf我再也没搜到比它更靠谱的项目了,虽然他也不怎么靠谱
就像你说的,表单稍微复杂一点,那么只能歇菜,兄台有没有更好的类库推荐往不吝赐教

@knilink
Copy link
Author

knilink commented Jul 5, 2017

@eddyzhang1986 感觉即使是有一个支持动态表单的解决方案(曾经想过套用mongodb的查询语法来描述条件),那它肯定是一个蹩脚的脚本语言。那和直接用js写没啥区别。

@eddyzhang1986
Copy link
Owner

@knilink 我现在始终也没找到一个合适一点的,react 除了rjsf好像还真是别无他法。

@knilink
Copy link
Author

knilink commented Jul 7, 2017

@eddyzhang1986 确实,只能死马当活马医。话说基于antd的rjsf widgets lib做吗?我自己平时也会用到。但是建repo的话没那么多精力去维护。

@eddyzhang1986
Copy link
Owner

eddyzhang1986 commented Jul 7, 2017

@knilink 准备这周末把这个移植好,现在第一阶段准备扩展widgets lib
第二阶段就干脆重写了,另外我还发现一个项目
react-schema-form-antd 他也没成立多长时间,估计和我们遇到的问题差不多
我想第一版先来个基本的,然后再增加投入专门搞这个事。

@hong-boy
Copy link

期待,要免费劳动力吗~

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

3 participants