fix: group block error

This commit is contained in:
sealday 2024-03-30 02:46:48 +08:00
parent a7067ae99d
commit 47e5892c61
3 changed files with 40 additions and 34 deletions

View File

@ -38,6 +38,10 @@ export const GroupBlock = (props) => {
if (service.loading && !field.loaded) { if (service.loading && !field.loaded) {
return <Spin />; return <Spin />;
} }
// 兼容旧版区块防止报错导致无法配置
if (!params?.config || !('map' in params.config)) {
return;
}
return ( return (
<> <>
<p style={{ fontWeight: 600 }}></p> <p style={{ fontWeight: 600 }}></p>

View File

@ -1,23 +1,24 @@
{ {
"Add custom component": "Add custom component",
"Association field": "Association field",
"Configure": "Configure",
"Custom filter": "Custom filter",
"Custom option label": "Custom option label",
"Group block": "Group block",
"HomePage Config": "HomePage Config",
"Mobile UI": "Mobile UI", "Mobile UI": "Mobile UI",
"Navigate to new page": "Navigate to new page",
"Page style": "Page Style",
"Pagination": "Pagination",
"Pick a data entry for viewing and editing": "Pick a data entry for viewing and editing",
"Please select": "Please select",
"Signature input": "Signature input",
"Something went wrong. Please contact the developer to resolve the issue.": "Something went wrong. Please contact the developer to resolve the issue.",
"System setting": "System setting",
"classical": "classical",
"component": "component",
"error": "error", "error": "error",
"loading...": "loading...", "loading...": "loading...",
"preview block": "preview block", "preview block": "preview block",
"Page style": "Page Style", "tabs": "tabs"
"tabs": "tabs",
"Pagination": "Pagination",
"component": "component",
"Navigate to new page": "Navigate to new page",
"Custom option label": "Custom option label",
"Custom filter": "Custom filter",
"Add custom component": "Add custom component",
"Group block": "Group block",
"System setting": "System setting",
"classical": "classical",
"Signature input": "Signature input",
"Pick a data entry for viewing and editing": "Pick a data entry for viewing and editing",
"Please select": "Please select",
"Association field": "Association field",
"HomePage Config": "HomePage Config",
"Something went wrong. Please contact the developer to resolve the issue.": "Something went wrong. Please contact the developer to resolve the issue."
} }

View File

@ -1,23 +1,24 @@
{ {
"Add custom component": "添加自定义组件",
"Association field": "关联字段",
"Configure": "配置",
"Custom filter": "自定义筛选",
"Custom option label": "自定义选项标签",
"Group block": "汇总区块",
"HomePage Config": "主页配置",
"Mobile UI": "移动端页面", "Mobile UI": "移动端页面",
"Navigate to new page": "导航到新页面",
"Page style": "页面版本",
"Pagination": "分页",
"Pick a data entry for viewing and editing": "选择一条数据用于查看与编辑",
"Please select": "请选择",
"Signature input": "手写签名",
"Something went wrong. Please contact the developer to resolve the issue.": "系统内部错误,请联系开发者解决",
"System setting": "系统设置",
"classical": "经典版",
"component": "组件",
"error": "出错了", "error": "出错了",
"loading...": "加载中...", "loading...": "加载中...",
"preview block": "预览区块", "preview block": "预览区块",
"Page style": "页面版本", "tabs": "多标签"
"tabs": "多标签",
"Pagination": "分页",
"Custom option label": "自定义选项标签",
"Custom filter": "自定义筛选",
"Navigate to new page": "导航到新页面",
"component": "组件",
"Add custom component": "添加自定义组件",
"Group block": "汇总区块",
"System setting": "系统设置",
"classical": "经典版",
"Signature input": "手写签名",
"Pick a data entry for viewing and editing": "选择一条数据用于查看与编辑",
"Please select": "请选择",
"Association field": "关联字段",
"HomePage Config": "主页配置",
"Something went wrong. Please contact the developer to resolve the issue.": "系统内部错误,请联系开发者解决"
} }