Commit 825d5a58 authored by 田翔's avatar 田翔

fix: 获取的数据修改

parent 84427aaa
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.3", "version": "5.7.4",
"description": "5.7.3 关联属性增加关联表单的表格数据", "description": "5.7.4 获取的数据修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -171,7 +171,7 @@ const RelationForm = (props) => { ...@@ -171,7 +171,7 @@ const RelationForm = (props) => {
setDataSource(tableData) setDataSource(tableData)
onChange(`${tableData.length}`) onChange(`${tableData.length}`)
let relationForm = addons.getValue('relationForm') || { configs: [], data: [], table: [] } let relationForm = addons.getValue('relationForm') || { configs: [], data: [], table: [] }
addons.setValue('relationForm', { ...relationForm, table: [...relationForm.table, { config, dataSource }] }) addons.setValue('relationForm', { ...relationForm, table: [...relationForm.table, { config, dataSource: tableData }] })
} else { } else {
setDataSource([]) setDataSource([])
onChange(`${0}`) onChange(`${0}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment