-
Notifications
You must be signed in to change notification settings - Fork 440
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
如何动态改变innerform或innertable的显示 #18
Labels
Comments
如果要自己定制开发应该比较简单,直接hard code即可,需要修改schema的parse过程,相关代码见InnerFormSchemaUtils.js和InnerTableSchemaUtils.js,比如写一堆的if-else。。。 |
谢谢大神,其实可以有一个hard code(文件配置)配置,然后有个自定义code.显示根据hard code(文件配置)+自定义code(state中可修改)的合并结果作为state的最终值 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感谢大神为我们提供如此强大好用的功能,我这里有这么个功能经常遇到,不知道如何能够实现,谢谢了!
比如innerform中有一个下拉列表,另外有三个filed:A1(下拉形式),B1(日期类型),C1(数字类型)innertable同样有三个column A2(下拉形式),B2(日期类型),C2(数字类型)
当值为A时,innerform中A1显示B1,C1隐藏innertable中A2显示B2,C2隐藏
当值为B时,innerform中B1显示A1,C1隐藏innertable中B2显示A2,C2隐藏
当值为C时,innerform中C1显示A1,B1隐藏innertable中C2显示A2,B2隐藏
或者说当值为D时innerform中某个字段取消验证,当值为ABC是需要验证
The text was updated successfully, but these errors were encountered: