Commit 468c8e53 authored by 田翔's avatar 田翔

fix: 样式更新

parent e66845d2
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "1.5.3", "version": "1.5.4",
"description": "1.5.3: 增加关联选择器", "description": "1.5.4: 样式更新",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -34,16 +34,16 @@ const FormDesigner = (props, ref) => { ...@@ -34,16 +34,16 @@ const FormDesigner = (props, ref) => {
} }
const getTableConfig = async () => { const getTableConfig = async () => {
const { code, data } = await GetTableConfigJson({ tableName }) const { code, data, msg } = await GetTableConfigJson({ tableName })
if (code === 0) { if (code === 0) {
if (typeof data === 'string') { if (typeof data === 'string') {
setTimeout(() => { setTimeout(() => {
designerRef && designerRef.current && designerRef.current.setValue && designerRef.current.setValue(JSON.parse(data)) designerRef?.current?.setValue(JSON.parse(data))
setSchema(JSON.parse(data)) setSchema(JSON.parse(data))
}, 0) }, 0)
} }
} else { } else {
message.error('获取表单配置失败') message.error(msg)
} }
} }
...@@ -90,7 +90,7 @@ const FormDesigner = (props, ref) => { ...@@ -90,7 +90,7 @@ const FormDesigner = (props, ref) => {
return ( return (
<div className={prefixCls} style={{ width: '100%', height: '100%', background: 'white' }}> <div className={prefixCls} style={{ width: '100%', height: '100%', background: 'white' }}>
<div style={{ height: '750px' }}> <div style={{ height: '100%' }}>
<Generator <Generator
configProvider={{ prefixCls: prefixCls }} configProvider={{ prefixCls: prefixCls }}
mapping={{ mapping={{
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
body #app { body #app {
background: transparent; background: transparent;
width: 100%;
height: 100%;
.pg-viewer-wrapper { .pg-viewer-wrapper {
overflow-y: auto; overflow-y: auto;
} }
......
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