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

fix: 样式更新

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