Commit 013fdc8f authored by 田翔's avatar 田翔

fix: 关联表单隐藏分组也隐藏

parent 4fe6190b
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.3.3", "version": "5.3.4",
"description": "5.3.3 关联表单隐藏分组也隐藏", "description": "5.3.4 关联表单隐藏分组也隐藏",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -428,6 +428,7 @@ const RelationForm = (props) => { ...@@ -428,6 +428,7 @@ const RelationForm = (props) => {
useEffect(() => { useEffect(() => {
try { try {
setTimeout(() => {
let dataPath = addons?.dataPath?.split('.')[0] let dataPath = addons?.dataPath?.split('.')[0]
let group = addons?.formData?.[dataPath] let group = addons?.formData?.[dataPath]
let paths = Object.keys(group) let paths = Object.keys(group)
...@@ -442,8 +443,9 @@ const RelationForm = (props) => { ...@@ -442,8 +443,9 @@ const RelationForm = (props) => {
hidden = false hidden = false
} }
addons?.setSchemaByPath(dataPath, { hidden: hidden }) addons?.setSchemaByPath(dataPath, { hidden: hidden })
} catch { }, 500)
} catch (e) {
console.log('error', error)
} }
}, [show]) }, [show])
......
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