fix: linkage rules have not been synced correctly from form template (#6550)

This commit is contained in:
gchust 2025-03-25 18:42:58 +08:00 committed by GitHub
parent 8a82cdec5b
commit 380da5ec0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,10 @@ export function convertTplBlock(
if (newSchema['x-decorator'] === 'TemplateGridDecorator') { if (newSchema['x-decorator'] === 'TemplateGridDecorator') {
delete newSchema['x-decorator']; delete newSchema['x-decorator'];
} }
if (newSchema['x-linkage-rules']) {
// linkage rules 有可能保存在Grid组件中
delete newSchema['x-linkage-rules'];
}
for (const key in tpl.properties) { for (const key in tpl.properties) {
const t = convertTplBlock(tpl.properties[key], virtual, isRoot, newRootId, templateKey, options); const t = convertTplBlock(tpl.properties[key], virtual, isRoot, newRootId, templateKey, options);
if (isRoot) { if (isRoot) {