Commit b2159f20 authored by 田翔's avatar 田翔

fix: 代码优化

parent 18aafc66
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.9", "version": "5.8.0",
"description": "5.7.9 附件预览问题", "description": "5.8.0 统一标签宽度",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -75,6 +75,7 @@ const XRender = (props, ref) => { ...@@ -75,6 +75,7 @@ const XRender = (props, ref) => {
} }
childObj[s] = { childObj[s] = {
...child[s], ...child[s],
labelWidth: 110,
presetValue: value || child[s].presetValue || '', presetValue: value || child[s].presetValue || '',
textDefalut: child[s].presetValue, textDefalut: child[s].presetValue,
formDisabled: disabled, formDisabled: disabled,
...@@ -99,7 +100,6 @@ const XRender = (props, ref) => { ...@@ -99,7 +100,6 @@ const XRender = (props, ref) => {
properties: parentObj properties: parentObj
} }
setInitField(array) setInitField(array)
console.log('json', schemaForm, json)
return json return json
}, [formJson, values, disabledFields, disabled]) }, [formJson, values, disabledFields, disabled])
......
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