表单设计器下个版本会存在Break Change! #2064
janryWang
started this conversation in
Show and tell
Replies: 5 comments 6 replies
-
|
Great! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
这么重构以后,确实改进很大。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
下个版本,是指2.0的RC5吗 |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
大佬催更,这个改动预计啥时候能上线呀 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
想知道如果现在用 designable,等到版本升级后使用方需要做些什么么? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
因为设计器领域本人也是在探索和学习,虽然在designable层面,目前的模型划分和设计,基本上算是比较完备灵活的版本了,
但是,在落到表单设计器层面上,还是存在一些设计上的问题:
第一:createDesignableField把很多拖拽行为,文案绑定的事情给做了,定制性很差,无法给每个拖拽源定制更灵活的designerProps
第二:还是因为第一点,文案绑定的作用域其实都是在Field组件上的,所以非常容易出现文案冲突,因为Field组件是个复合组件,内部的属性文案,更多的是取决于x-component,当然,这么说其实也不太完备,其实应该是取决于拖拽源节点
第三:想要把createDesignableField创建出来的DesignableField集成到designable的页面搭建场景,并不容易,比如:用户有可能想要完全定制基于拖拽源节点的propsSchema,目前内部强制约定了一些基础配置,且无法扩展,这个是个很严重的问题
总之,目前的表单设计器版本,还是比较初级的版本,主要还是为了想让用户尝鲜才放出来的,下面针对以上问题,是我最近探索出来的解决方案:
这么设计了之后,formily设计器内部自身的架构也会变得清晰起来,可维护性会大大提升
考虑一种场景,用户想基于表单设计器定制一个无代码设计器,比如把响应器配置换成更易用,用户接受程度更好的业务定制配置形式,以这种形式是很容易做扩展定制的
Beta Was this translation helpful? Give feedback.
All reactions