mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
fix: 用户在动态修改 prototype 时也需要重新计算 meta
This commit is contained in:
parent
5c3b08a974
commit
66c21c07be
@ -126,8 +126,8 @@ export default class Bundle {
|
|||||||
*/
|
*/
|
||||||
if (bundles.length >= 2) {
|
if (bundles.length >= 2) {
|
||||||
const prototype = bundles[0];
|
const prototype = bundles[0];
|
||||||
// const metadata = upgradeMetadata(prototype.options);
|
const metadata = upgradeMetadata(prototype.options);
|
||||||
// prototype.meta = designer.createComponentMeta(metadata);
|
prototype.meta = designer.createComponentMeta(metadata);
|
||||||
const prototypeView = bundles[1];
|
const prototypeView = bundles[1];
|
||||||
prototype.setView(prototypeView);
|
prototype.setView(prototypeView);
|
||||||
this.registerPrototype(prototype);
|
this.registerPrototype(prototype);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user