Commit c0cbdeba authored by 田翔's avatar 田翔

fix: 代码修复

parent 907ab05b
{
"name": "panda-xform",
"version": "5.4.6",
"description": "5.4.6 关联表单配置统一",
"version": "5.4.7",
"description": "5.4.7 本人信息bug修复",
"keywords": [
"panda-xform"
],
......
......@@ -75,7 +75,7 @@ const XRender = (props, ref) => {
}
childObj[s] = {
...child[s],
presetValue: disabledField ? (value || '') : (value || child[s].presetValue),
presetValue: value || child[s].presetValue,
textDefalut: child[s].presetValue,
disabled: disabledField,
required,
......
......@@ -64,7 +64,10 @@ const TextInput = (props) => {
useEffect(() => {
let valueNext = presetValue
if (preview !== 'preview') {
if (!presetValue || loaclPaths.includes(presetValue)) {
if (loaclPaths.includes(presetValue)) {
if (disabled) {
valueNext = ''
} else {
if (textDefalut === '【本人姓名】') {
if (isStoreID) {
valueNext = userInfo.OID + ''
......@@ -82,6 +85,7 @@ const TextInput = (props) => {
}
}
}
}
if (addons) {
addons.setValue(addons.dataPath, valueNext || '')
} else {
......
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