Commit 2698d54e authored by 田翔's avatar 田翔

fix: 多分组自动隐藏BUG修复

parent 6e147c06
{
"name": "panda-xform",
"version": "6.0.46",
"description": "6.0.45 台账预览文件显示标题优化",
"version": "6.0.47",
"description": "6.0.47 多分组自动隐藏BUG修复",
"keywords": [
"panda-xform"
],
......
......@@ -188,8 +188,11 @@ const formFieldHide = async (params) => {
if (path) {
const schema = params?.form?.getSchemaByPath(path)
params?.form?.setSchemaByPath(path, { ...schema, hidden: v.isHide, presetValue: v.fieldValue || schema.presetValue || '' })
let hidden = getGroupHidden(params?.form, params.schema, params.gorupName)
params?.form?.setSchemaByPath(params.gorupName, { ...params?.form?.getSchemaByPath(params.gorupName), hidden: hidden })
let gorupPath = path.split('.')[0]
if (gorupPath) {
let hidden = getGroupHidden(params?.form, params.schema, gorupPath)
params?.form?.setSchemaByPath(gorupPath, { ...params?.form?.getSchemaByPath(gorupPath), hidden: hidden })
}
}
}
})
......
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