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

fix: 获取的数据修改

parent 84427aaa
{
"name": "panda-xform",
"version": "5.7.3",
"description": "5.7.3 关联属性增加关联表单的表格数据",
"version": "5.7.4",
"description": "5.7.4 获取的数据修改",
"keywords": [
"panda-xform"
],
......
......@@ -171,7 +171,7 @@ const RelationForm = (props) => {
setDataSource(tableData)
onChange(`${tableData.length}`)
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 {
setDataSource([])
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