We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在form 里面配置一个下拉框,一个inputTable,对下拉框配置事件处理,当值发生变化时,更新inputTable中第一条记录中的某个字段,在V6.6.0~V6.7.0版本,可以正常运行,在V6.8.0及以上版本中,无效果。
你是如何使用 amis 的? npm
amis 版本是什么?请先在最新 beta 版本测试问题是否存在 V6.8.0及以上版本
粘贴有问题的完整 amis schema 代码:
amis schema
{ "type": "select", "name": "idType", "label": "主键策略", "value": "${idType}", "columnRatio": 4, "options": [{ "label": "分布式ID(UUID)", "value": "UUID" }, { "label": "自增长ID", "value": "NATIVE" }], "onEvent":{ "change":{ "actions":[ { "actionType":"custom", "script": "const tableData = event.context.scoped.getComponentById('editForm').getData().fields; tableData[0].dbType = event.data.value=='NATIVE'?'int':'string'; doAction({ actionType: 'setValue', componentId: 'updateInputTable', args: { value: tableData } });" } ] } } }``` 4. 操作步骤 通过下拉框切换不同的选项,在事件处理中,按以上脚本进行脚本处理,观察表格中的第一条数据有无变化
The text was updated successfully, but these errors were encountered:
这边建议没有必要不要升级~~~
要解决的话就只能顺便更新下inputtable中的数据了
Amis低代码前端框架交流群【QQ 1群】:717791727 Amis低代码前端框架交流群【QQ 2群】:721182449
Sorry, something went wrong.
No branches or pull requests
描述问题:
在form 里面配置一个下拉框,一个inputTable,对下拉框配置事件处理,当值发生变化时,更新inputTable中第一条记录中的某个字段,在V6.6.0~V6.7.0版本,可以正常运行,在V6.8.0及以上版本中,无效果。
截图或视频:
如何复现(请务必完整填写下面内容):
你是如何使用 amis 的?
npm
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
V6.8.0及以上版本
粘贴有问题的完整
amis schema
代码:The text was updated successfully, but these errors were encountered: