Commit d3e9bb1b authored by 田翔's avatar 田翔

fix: 附件形态问题

parent 556facb9
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.2.2", "version": "5.2.3",
"description": "5.2.2 关联表单编辑状态下点击不进行处理", "description": "5.2.3 附件形态问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -260,10 +260,14 @@ const FileUpload = (props) => { ...@@ -260,10 +260,14 @@ const FileUpload = (props) => {
return fileList return fileList
} }
useEffect(async () => { const setList = async () => {
setShowList(await valueToList(presetValue))
}
useEffect(() => {
if (presetValue && !presetValue.includes('拍照相册')) { if (presetValue && !presetValue.includes('拍照相册')) {
addons?.setValue(addons?.dataPath, presetValue || '') addons?.setValue(addons?.dataPath, presetValue || '')
setShowList(await valueToList(presetValue)) setList()
} else { } else {
addons?.setValue(addons?.dataPath, '') addons?.setValue(addons?.dataPath, '')
} }
......
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