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

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

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