mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: 修复 overridePropsConfigure 失效的 bug
This commit is contained in:
parent
a408b93572
commit
7168a903ce
@ -96,6 +96,9 @@ function overridePropsConfigure(componentName: string, config: { [name: string]:
|
||||
autoruns,
|
||||
override,
|
||||
};
|
||||
|
||||
// refresh metadata
|
||||
window.VisualEngine.designer.getComponentMeta(componentName).parseMetadata(window.VisualEngine.designer.getComponentMeta(componentName).getMetadata());
|
||||
}
|
||||
registerMetadataTransducer(
|
||||
(metadata) => {
|
||||
@ -148,9 +151,12 @@ registerMetadataTransducer(
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: replace autoruns,initials,filters
|
||||
if (metadata.experimental) {
|
||||
metadata.experimental.initials = Overrides[componentName]?.initials;
|
||||
metadata.experimental.autoruns = Overrides[componentName]?.autoruns;
|
||||
metadata.experimental.filters = Overrides[componentName]?.filters;
|
||||
}
|
||||
}
|
||||
|
||||
return metadata;
|
||||
},
|
||||
100,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user