Commit d0ff264d authored by 田翔's avatar 田翔

fix: 样式调整

parent 402ba948
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.1.3", "version": "2.1.4",
"description": "2.1.3: 简化修改", "description": "2.1.4: 样式调整",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -25,6 +25,7 @@ const XRender = (props, ref) => { ...@@ -25,6 +25,7 @@ const XRender = (props, ref) => {
const schemaForm = useMemo(() => { const schemaForm = useMemo(() => {
let schemaForm = schema ? (isObject(schema) ? schema : JSON.parse(schema)) : {} let schemaForm = schema ? (isObject(schema) ? schema : JSON.parse(schema)) : {}
console.log(schemaForm, schema)
if (Array.isArray(values)) { if (Array.isArray(values)) {
let parent = schemaForm?.properties let parent = schemaForm?.properties
let parentObj = {} let parentObj = {}
...@@ -48,7 +49,7 @@ const XRender = (props, ref) => { ...@@ -48,7 +49,7 @@ const XRender = (props, ref) => {
} }
} }
} }
return { ...schema, properties: parentObj } return { ...schemaForm, properties: parentObj }
} }
return schemaForm return schemaForm
}, [schema, values]) }, [schema, values])
......
...@@ -12,6 +12,7 @@ body #app { ...@@ -12,6 +12,7 @@ body #app {
@pandaXform-prefix-cls: ~'@{ant-prefix}-pandaXform'; @pandaXform-prefix-cls: ~'@{ant-prefix}-pandaXform';
.@{pandaXform-prefix-cls} { .@{pandaXform-prefix-cls} {
background: white;
.fr-generator-container .left-layout { .fr-generator-container .left-layout {
.left-item { .left-item {
.anticon { .anticon {
......
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