Commit 16de747d authored by 田翔's avatar 田翔

fix: 表单本人信息被覆盖问题

parent 8ad5aeac
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.4.0", "version": "5.4.1",
"description": "5.4.0 初始化分组不隐藏问题", "description": "5.4.1 表单本人信息被覆盖问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -75,7 +75,7 @@ const XRender = (props, ref) => { ...@@ -75,7 +75,7 @@ const XRender = (props, ref) => {
} }
childObj[s] = { childObj[s] = {
...child[s], ...child[s],
presetValue: disabled ? (value || '') : (value || child[s].presetValue), presetValue: disabledField ? (value || '') : (value || child[s].presetValue),
textDefalut: child[s].presetValue, textDefalut: child[s].presetValue,
disabled: disabledField, disabled: disabledField,
required, required,
......
...@@ -64,7 +64,7 @@ const TextInput = (props) => { ...@@ -64,7 +64,7 @@ const TextInput = (props) => {
useEffect(() => { useEffect(() => {
let valueNext = presetValue let valueNext = presetValue
if (preview !== 'preview') { if (preview !== 'preview') {
if (!value) { if (!presetValue || loaclPaths.includes(presetValue)) {
if (textDefalut === '【本人姓名】') { if (textDefalut === '【本人姓名】') {
if (isStoreID) { if (isStoreID) {
valueNext = userInfo.OID + '' valueNext = userInfo.OID + ''
......
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