You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
在重构一个复杂表单,现在遇到一些问题
第一个:值取反、值二次处理
比如有个值是isIgnoreBlock, true为不过滤黑名单;但是表单显示实际上是个勾选框「是否过滤黑名单」给用户,值刚好是反着的,这个时候处理就很麻烦了。
理想情况是,既然有convert(组件 -> Form),就可以有Form -> 组件的修改,那就轻松了,其他组件是有的
第二个:默认值被清空
比如我原先设置了一个a:true, 然后切换type的为1时,a隐藏,type切换为2时显示,但是一切换以后a的默认值就没了。
理想情况是,a的默认值永远都等于true
临时处理也很没麻烦,后面肯定会忘记
第三个: setValues表现比较奇怪
#2277
比如想批量操作一些字段,结果其他字段被清空了
临时办法
其他想起来再记录
Beta Was this translation helpful? Give feedback.
All reactions